diff --git a/libcockatrice_network/libcockatrice/network/server/remote/game/server_abstract_player.cpp b/libcockatrice_network/libcockatrice/network/server/remote/game/server_abstract_player.cpp index 96b00c936..18bbd967b 100644 --- a/libcockatrice_network/libcockatrice/network/server/remote/game/server_abstract_player.cpp +++ b/libcockatrice_network/libcockatrice/network/server/remote/game/server_abstract_player.cpp @@ -204,6 +204,10 @@ shouldDestroyOnMove(const Server_Card *card, const Server_CardZone *startZone, c static bool shouldBeFaceDown(const MoveCardStruct &cardStruct, const Server_CardZone *startZone, const Server_CardZone *targetZone) { + if (!targetZone) { + return false; + } + // being face-down only makes sense for public zones if (targetZone->getType() != ServerInfo_Zone::PublicZone) { return false;