Skip to content

Commit 7ba6253

Browse files
committed
refresh map sprite when profession is changed
1 parent 015b0f9 commit 7ba6253

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Template for new versions:
4040
- `immortal-cravings`: goblins and other naturally non-eating/non-drinking races will now also satisfy their needs for eating and drinking
4141
- `caravan`: add filter for written works in display furniture assignment dialog
4242
- `fix/wildlife`: don't vaporize stuck wildlife that is onscreen -- kill them instead (as if they died from old age)
43+
- `gui/gm-unit`: refresh unit sprite when profession is changed
4344

4445
## Removed
4546

internal/gm-unit/editor_profession.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ end
4444
function Editor_Prof:save_profession(_, choice)
4545
self.target_unit.profession = choice.profession
4646
self.target_unit.profession2 = choice.profession
47+
self.target_unit.flags4.any_texture_must_be_refreshed = true
4748
end
4849

4950
function Editor_Prof:onOpen()

0 commit comments

Comments
 (0)