summaryrefslogtreecommitdiff
path: root/src/itemcolormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-19 23:04:05 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-20 01:48:03 +0300
commit9dfde677430ab0dc1c11807b2b0d9f76bab353bb (patch)
tree92907f9c9467cf798c2b6fa392df9eefaebf4898 /src/itemcolormanager.cpp
parent8462b9ae346a41a37b2790c3ea5f14f0e783ab71 (diff)
downloadmanaverse-9dfde677430ab0dc1c11807b2b0d9f76bab353bb.tar.gz
manaverse-9dfde677430ab0dc1c11807b2b0d9f76bab353bb.tar.bz2
manaverse-9dfde677430ab0dc1c11807b2b0d9f76bab353bb.tar.xz
manaverse-9dfde677430ab0dc1c11807b2b0d9f76bab353bb.zip
Add support for stored cards with sprites in Being.
Diffstat (limited to 'src/itemcolormanager.cpp')
-rw-r--r--src/itemcolormanager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/itemcolormanager.cpp b/src/itemcolormanager.cpp
index 0cf48015b..dc8d65afb 100644
--- a/src/itemcolormanager.cpp
+++ b/src/itemcolormanager.cpp
@@ -50,3 +50,8 @@ ItemColor ItemColorManager::getColorFromCards(const int *const cards)
}
return ItemColor_one;
}
+
+ItemColor ItemColorManager::getColorFromCards(const CardsList &cards)
+{
+ return getColorFromCards(&cards.cards[0]);
+}