diff --git a/apps/openmw/mwmp/DedicatedPlayer.cpp b/apps/openmw/mwmp/DedicatedPlayer.cpp index dc96c71fd..a5a4d4bed 100644 --- a/apps/openmw/mwmp/DedicatedPlayer.cpp +++ b/apps/openmw/mwmp/DedicatedPlayer.cpp @@ -174,7 +174,7 @@ void DedicatedPlayer::setShapeshift() if (reference) isNpc = ptr.getTypeName() == typeid(ESM::NPC).name(); - if (creatureRefId != previousCreatureRefId) + if (creatureRefId != previousCreatureRefId || displayCreatureName != previousDisplayCreatureName) { if (!creatureRefId.empty() && RecordHelper::doesCreatureExist(creatureRefId)) { @@ -229,6 +229,7 @@ void DedicatedPlayer::setShapeshift() } previousCreatureRefId = creatureRefId; + previousDisplayCreatureName = displayCreatureName; } if (ptr.getTypeName() == typeid(ESM::NPC).name()) diff --git a/apps/openmw/mwmp/DedicatedPlayer.hpp b/apps/openmw/mwmp/DedicatedPlayer.hpp index b9ead74e1..783153a00 100644 --- a/apps/openmw/mwmp/DedicatedPlayer.hpp +++ b/apps/openmw/mwmp/DedicatedPlayer.hpp @@ -75,6 +75,7 @@ namespace mwmp std::string previousRace; std::string previousCreatureRefId; + bool previousDisplayCreatureName; std::string creatureRecordId; };