mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 17:32:15 -07:00
nullcheck view
This commit is contained in:
parent
4cd4e0837e
commit
3ecd545ffb
1 changed files with 1 additions and 1 deletions
|
|
@ -3441,7 +3441,7 @@ static bool isUnwritableRevealZone(CardZone *zone)
|
|||
{
|
||||
if (zone && zone->getIsView()) {
|
||||
auto *view = static_cast<ZoneViewZone *>(zone);
|
||||
return view->getRevealZone() && !view->getWriteableRevealZone();
|
||||
return view && view->getRevealZone() && !view->getWriteableRevealZone();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue