diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-17 18:36:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-17 19:19:58 +0300 |
commit | 55cbf74cbe2c40b4592e72621e40f8858fc376d9 (patch) | |
tree | 1adb70df7ddddde9a504d572a789e7afb5cae58c /src/itemcolormanager.cpp | |
parent | 261a118937d8b1cd41cf16d983f880e5957f84b1 (diff) | |
download | manaverse-55cbf74cbe2c40b4592e72621e40f8858fc376d9.tar.gz manaverse-55cbf74cbe2c40b4592e72621e40f8858fc376d9.tar.bz2 manaverse-55cbf74cbe2c40b4592e72621e40f8858fc376d9.tar.xz manaverse-55cbf74cbe2c40b4592e72621e40f8858fc376d9.zip |
Move cards constants into separate file.
Diffstat (limited to 'src/itemcolormanager.cpp')
-rw-r--r-- | src/itemcolormanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/itemcolormanager.cpp b/src/itemcolormanager.cpp index 7653b0ad9..9344ff856 100644 --- a/src/itemcolormanager.cpp +++ b/src/itemcolormanager.cpp @@ -20,6 +20,8 @@ #include "itemcolormanager.h" +#include "const/resources/item/cards.h" + #include "resources/iteminfo.h" #include "resources/db/itemdb.h" @@ -30,7 +32,7 @@ ItemColor ItemColorManager::getColorFromCards(const int *const cards) { if (!cards) return ItemColor_one; - for (int f = 0; f < 4; f ++) + for (int f = 0; f < maxCards; f ++) { const ItemInfo &info = ItemDB::get(cards[f]); const ItemColor &color = info.getCardColor(); |