summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-29 23:49:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-29 23:49:29 +0300
commit45379d14d9d3c7f4673b8390cb95d98bb1759f45 (patch)
tree698fe787014ca277f5b23144136d4e5417c6b444 /src/resources/iteminfo.cpp
parent273b79cf4f52c846508f3493727e34b1811ecfd5 (diff)
downloadmanaplus-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.gz
manaplus-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.bz2
manaplus-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.xz
manaplus-45379d14d9d3c7f4673b8390cb95d98bb1759f45.zip
Convert Gender enum into strong typed enum.
Diffstat (limited to 'src/resources/iteminfo.cpp')
-rw-r--r--src/resources/iteminfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp
index 0cdbed04d..768825f44 100644
--- a/src/resources/iteminfo.cpp
+++ b/src/resources/iteminfo.cpp
@@ -86,7 +86,7 @@ ItemInfo::~ItemInfo()
mSpriteToItemReplaceMap[f] = nullptr;
}
-const std::string &ItemInfo::getSprite(const Gender::Type gender,
+const std::string &ItemInfo::getSprite(const GenderT gender,
const BeingTypeId race) const
{
if (mView)
@@ -363,7 +363,7 @@ int ItemInfo::getDrawPriority(const int direction) const
}
void ItemInfo::setSprite(const std::string &animationFile,
- const Gender::Type gender,
+ const GenderT gender,
const int race)
{
mAnimationFiles[static_cast<int>(gender) + race * 4] = animationFile;