1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00
This commit is contained in:
Laserlicht 2023-09-26 12:01:16 +02:00 committed by GitHub
parent c3373ea34c
commit 02c82cb35b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -437,13 +437,13 @@ bool PlayerMessageProcessor::handleCheatCode(const std::string & cheat, PlayerCo
executeCheatCode(cheatName, i.first, h->id, parameters);
}
if (!playerTargetedCheat)
executeCheatCode(cheatName, player, currObj, words);
PlayerCheated pc;
pc.player = player;
gameHandler->sendAndApply(&pc);
if (!playerTargetedCheat)
executeCheatCode(cheatName, player, currObj, words);
return true;
}