From d5b5b81450fca0394e378420c13be64a02828f78 Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Tue, 2 Jun 2020 15:03:59 +0200 Subject: [PATCH] changes --- library/modules/Units.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/modules/Units.cpp b/library/modules/Units.cpp index 43eb9026c..458a09ea3 100644 --- a/library/modules/Units.cpp +++ b/library/modules/Units.cpp @@ -204,14 +204,15 @@ void Units::setNickname(df::unit *unit, std::string nick) df::historical_figure *id_hfig = NULL; switch (identity->type) { + case df::identity_type::None: case df::identity_type::HidingCurse: - case df::identity_type::Identity: case df::identity_type::FalseIdentity: + case df::identity_type::InfiltrationIdentity: + case df::identity_type::Identity: break; // We want the nickname to end up in the identity 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); break; }