From ec7f97bb7a85a1d317c5fdba602e8bbc43eb44cd Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Sat, 2 May 2020 17:37:10 +0200 Subject: [PATCH] adapted to enum value name change --- library/modules/Units.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/modules/Units.cpp b/library/modules/Units.cpp index c4b9e60fa..43eb9026c 100644 --- a/library/modules/Units.cpp +++ b/library/modules/Units.cpp @@ -209,7 +209,7 @@ void Units::setNickname(df::unit *unit, std::string nick) case df::identity_type::FalseIdentity: break; // We want the nickname to end up in the identity - case df::identity_type::Unk_1: // Guess, but that's how it worked in the past + case df::identity_type::Impersonating: 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->histfig_id);