summaryrefslogtreecommitdiff
path: root/src/resources/item/item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/item/item.cpp')
-rw-r--r--src/resources/item/item.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/item/item.cpp b/src/resources/item/item.cpp
index 3f67585ac..ae31dd94c 100644
--- a/src/resources/item/item.cpp
+++ b/src/resources/item/item.cpp
@@ -66,7 +66,7 @@ Item::Item(const int id,
mFavorite(favorite)
{
setId(id, color);
- for (int f = 0; f < 4; f ++)
+ for (int f = 0; f < maxCards; f ++)
mCards[f] = 0;
}