Readability tweak

This commit is contained in:
Gavin Bises 2015-02-21 21:31:17 -05:00
parent 66678e95dc
commit e423fb2a39

View file

@ -2159,8 +2159,7 @@ void Player::updateCardMenu(CardItem *card)
bool revealedCard = false;
bool writeableCard = getLocal();
if (card->getZone())
if (card->getZone()->getIsView()) {
if (card->getZone() && card->getZone()->getIsView()) {
ZoneViewZone *view = static_cast<ZoneViewZone *>(card->getZone());
if (view->getRevealZone()) {
if (view->getWriteableRevealZone())