From f826525d507d821c5a97820c59475fc6fe475253 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Mon, 9 Dec 2024 18:49:02 -0800 Subject: [PATCH] small fixes --- cockatrice/src/game/player/player.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/game/player/player.cpp b/cockatrice/src/game/player/player.cpp index 58b2bd61b..38f0b4f8b 100644 --- a/cockatrice/src/game/player/player.cpp +++ b/cockatrice/src/game/player/player.cpp @@ -3434,12 +3434,13 @@ void Player::actCardCounterTrigger() } /** - * @brief returns true if the zone is a unwritable reveal zone view (eg a card reveal window) + * @brief returns true if the zone is a unwritable reveal zone view (eg a card reveal window). Will return false if zone + * is nullptr. */ static bool isUnwritableRevealZone(CardZone *zone) { if (zone && zone->getIsView()) { - auto *view = dynamic_cast(zone); + auto *view = static_cast(zone); return view->getRevealZone() && !view->getWriteableRevealZone(); } return false;