Skip to content

Commit 18f0582

Browse files
authored
Merge pull request #5370 from myk002/myk_baron_prefs
[sort] fix barony overlay
2 parents 739a5ee + 9b00c08 commit 18f0582

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Template for new versions:
5757
- `gui/journal`: Ctrl-j hotkey to launch `gui/journal` now works in adventure mode!
5858

5959
## Fixes
60+
- Fix processing error in the overlay that displays unit preferences in the baron selection list
6061

6162
## Misc Improvements
6263

plugins/lua/sort/diplomacy.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ local function get_preferences(unit)
6464
if not unit then return {} end
6565
local preferences = {}
6666
for _, pref in ipairs(unit.status.current_soul.preferences) do
67-
if pref.type == df.unitpref_type.LikeItem and pref.active then
67+
if pref.type == df.unitpref_type.LikeItem and pref.flags.visible then
6868
table.insert(preferences, make_item_description(pref.item_type, pref.item_subtype))
6969
end
7070
end

0 commit comments

Comments
 (0)