diff --git a/src/game/game.cpp b/src/game/game.cpp index b150d759a23..b03256b33ec 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -10071,8 +10071,8 @@ void Game::updateMonster(const std::shared_ptr &monster, const std::sha return; } - const auto& oldName = monster->getLowerName(); - const auto& newName = monsterType->name; + const auto &oldName = monster->getLowerName(); + const auto &newName = monsterType->name; auto it = monstersNameIndex.find(oldName); if (it == monstersNameIndex.end()) {