summaryrefslogtreecommitdiff
path: root/src/item.cpp
diff options
context:
space:
mode:
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]));
}