From a001f4e407f3f377c88d75f6405d7026d6b67403 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Sun, 24 Dec 2023 18:19:05 +0200 Subject: [PATCH] Fix crash on reveal puzzle cheat --- server/processors/PlayerMessageProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/processors/PlayerMessageProcessor.cpp b/server/processors/PlayerMessageProcessor.cpp index f1821de56..afb331148 100644 --- a/server/processors/PlayerMessageProcessor.cpp +++ b/server/processors/PlayerMessageProcessor.cpp @@ -384,7 +384,7 @@ void PlayerMessageProcessor::cheatPuzzleReveal(PlayerColor player) for(auto & obj : gameHandler->gameState()->map->objects) { - if(obj->ID == Obj::OBELISK) + if(obj && obj->ID == Obj::OBELISK) { gameHandler->setObjPropertyID(obj->id, ObjProperty::OBELISK_VISITED, t->id); for(const auto & color : t->players)