diff --git a/library/modules/Units.cpp b/library/modules/Units.cpp index dc76c6802..c4b9e60fa 100644 --- a/library/modules/Units.cpp +++ b/library/modules/Units.cpp @@ -212,7 +212,7 @@ void Units::setNickname(df::unit *unit, std::string nick) case df::identity_type::Unk_1: // Guess, but that's how it worked in the past case df::identity_type::TrueName: case df::identity_type::Unk_4: // Pure guess, as this is a new case, still unseen - id_hfig = df::historical_figure::find(identity->figure.historical); + id_hfig = df::historical_figure::find(identity->histfig_id); break; }