Skip to content

Commit

Permalink
refresh map sprite when profession is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Dec 29, 2024
1 parent 015b0f9 commit 7ba6253
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Template for new versions:
- `immortal-cravings`: goblins and other naturally non-eating/non-drinking races will now also satisfy their needs for eating and drinking
- `caravan`: add filter for written works in display furniture assignment dialog
- `fix/wildlife`: don't vaporize stuck wildlife that is onscreen -- kill them instead (as if they died from old age)
- `gui/gm-unit`: refresh unit sprite when profession is changed

## Removed

Expand Down
1 change: 1 addition & 0 deletions internal/gm-unit/editor_profession.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ end
function Editor_Prof:save_profession(_, choice)
self.target_unit.profession = choice.profession
self.target_unit.profession2 = choice.profession
self.target_unit.flags4.any_texture_must_be_refreshed = true
end

function Editor_Prof:onOpen()
Expand Down

0 comments on commit 7ba6253

Please sign in to comment.