diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-20 16:13:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-20 16:13:56 +0300 |
commit | b2c6603542af1d5c34a3e252d9454ddf0b21fcc5 (patch) | |
tree | b9863b6532d6d92bd8c8ab29866e87b7e6fe4c24 /src/item.cpp | |
parent | 32b055d5738256c4a3e653a3e7b41d86739a3b74 (diff) | |
download | manaplus-b2c6603542af1d5c34a3e252d9454ddf0b21fcc5.tar.gz manaplus-b2c6603542af1d5c34a3e252d9454ddf0b21fcc5.tar.bz2 manaplus-b2c6603542af1d5c34a3e252d9454ddf0b21fcc5.tar.xz manaplus-b2c6603542af1d5c34a3e252d9454ddf0b21fcc5.zip |
Add missing checks or attribute to other files.
Diffstat (limited to 'src/item.cpp')
-rw-r--r-- | src/item.cpp | 2 |
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])); } |