Explorar o código

Fix regression

Ivan Savenko %!s(int64=2) %!d(string=hai) anos
pai
achega
b193f832a5
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      server/PlayerMessageProcessor.cpp

+ 3 - 0
server/PlayerMessageProcessor.cpp

@@ -383,6 +383,9 @@ bool PlayerMessageProcessor::handleCheatCode(const std::string & cheat, PlayerCo
 
 	for (const auto & i : gameHandler->gameState()->players)
 	{
+		if (words.empty())
+			break;
+
 		if (i.first == PlayerColor::NEUTRAL)
 			continue;