Ivan Savenko 2 anni fa
parent
commit
b193f832a5
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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;