summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/item/item.cpp2
-rw-r--r--src/resources/item/item.h4
2 files changed, 3 insertions, 3 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;
}
diff --git a/src/resources/item/item.h b/src/resources/item/item.h
index c287abd8c..9a910c31b 100644
--- a/src/resources/item/item.h
+++ b/src/resources/item/item.h
@@ -23,6 +23,8 @@
#ifndef RESOURCES_ITEM_ITEM_H
#define RESOURCES_ITEM_ITEM_H
+#include "const/resources/item/cards.h"
+
#include "enums/simpletypes/damaged.h"
#include "enums/simpletypes/equipm.h"
#include "enums/simpletypes/equipped.h"
@@ -36,8 +38,6 @@
class Image;
-const int maxCards = 4;
-
/**
* Represents one or more instances of a certain item type.
*/