mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 01:42: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()) {
|
if (zone && zone->getIsView()) {
|
||||||
auto *view = static_cast<ZoneViewZone *>(zone);
|
auto *view = static_cast<ZoneViewZone *>(zone);
|
||||||
return view->getRevealZone() && !view->getWriteableRevealZone();
|
return view && view->getRevealZone() && !view->getWriteableRevealZone();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue