From b2c6603542af1d5c34a3e252d9454ddf0b21fcc5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 20 Aug 2015 16:13:56 +0300 Subject: Add missing checks or attribute to other files. --- src/item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/item.cpp') diff --git a/src/item.cpp b/src/item.cpp index d0c30371a..a03cb4437 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -178,6 +178,6 @@ void Item::addCard(const int card) void Item::updateColor() { - if (serverFeatures->haveItemColors()) + if (serverFeatures && serverFeatures->haveItemColors()) setId(mId, ItemColorManager::getColorFromCards(&mCards[0])); } -- cgit v1.2.3-60-g2f50