diff --git a/server/processors/PlayerMessageProcessor.cpp b/server/processors/PlayerMessageProcessor.cpp index 0eb09d900..83d31be74 100644 --- a/server/processors/PlayerMessageProcessor.cpp +++ b/server/processors/PlayerMessageProcessor.cpp @@ -706,8 +706,8 @@ bool PlayerMessageProcessor::handleCheatCode(const std::string & cheat, PlayerCo std::string cheatName = boost::to_lower_copy(words[0]); words.erase(words.begin()); - // VCMI VCMI simple SoD/HotA AB RoE - std::vector localCheat = { + // VCMI VCMI simple SoD/HotA AB RoE + std::vector localCheats = { "vcmicolor", "nwcphisherprice", "vcmigray" }; @@ -739,7 +739,7 @@ bool PlayerMessageProcessor::handleCheatCode(const std::string & cheat, PlayerCo "vcmiscrolls" }; - if(vstd::contains(localCheat, cheatName)) + if(vstd::contains(localCheats, cheatName)) { executeCheatCode(cheatName, player, currObj, words); return true;