Skip to content

Commit

Permalink
also set prof of hf when changing profession
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Dec 31, 2024
1 parent 3262591 commit 0f7d46c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/gm-unit/editor_profession.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ end
function Editor_Prof:save_profession(_, choice)
self.target_unit.profession = choice.profession
self.target_unit.profession2 = choice.profession
local hf = df.historical_figure.find(self.target_unit.hist_figure_id)
if hf then
hf.profession = choice.profession
end
self.target_unit.flags4.any_texture_must_be_refreshed = true
end

Expand Down

0 comments on commit 0f7d46c

Please sign in to comment.