summaryrefslogtreecommitdiff
path: root/src/item.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-20 16:13:56 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-20 16:13:56 +0300
commitb2c6603542af1d5c34a3e252d9454ddf0b21fcc5 (patch)
treeb9863b6532d6d92bd8c8ab29866e87b7e6fe4c24 /src/item.cpp
parent32b055d5738256c4a3e653a3e7b41d86739a3b74 (diff)
downloadmv-b2c6603542af1d5c34a3e252d9454ddf0b21fcc5.tar.gz
mv-b2c6603542af1d5c34a3e252d9454ddf0b21fcc5.tar.bz2
mv-b2c6603542af1d5c34a3e252d9454ddf0b21fcc5.tar.xz
mv-b2c6603542af1d5c34a3e252d9454ddf0b21fcc5.zip
Add missing checks or attribute to other files.
Diffstat (limited to 'src/item.cpp')
-rw-r--r--src/item.cpp2
1 files changed, 1 insertions, 1 deletions
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]));
}