summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-18 22:03:20 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-18 22:03:20 +0300
commitbc94e3dbe141ca257363850077d3faf48338fb87 (patch)
treefa5dd9a6bcc0f4d35fffc3717203c8a45425195f /src/resources/iteminfo.cpp
parentafb663b60d9e946ce0b23f42e033bb94a99f26a2 (diff)
downloadmv-bc94e3dbe141ca257363850077d3faf48338fb87.tar.gz
mv-bc94e3dbe141ca257363850077d3faf48338fb87.tar.bz2
mv-bc94e3dbe141ca257363850077d3faf48338fb87.tar.xz
mv-bc94e3dbe141ca257363850077d3faf48338fb87.zip
Fix asserts about not found translated item names.
Diffstat (limited to 'src/resources/iteminfo.cpp')
-rw-r--r--src/resources/iteminfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp
index 1de4d9579..b23065f60 100644
--- a/src/resources/iteminfo.cpp
+++ b/src/resources/iteminfo.cpp
@@ -41,6 +41,7 @@ ItemInfo::ItemInfo() :
mMissileParticleFile(),
mDisplay(),
mName(),
+ mNameEn(),
mDescription(),
mEffect(),
mUseButton(),
@@ -256,6 +257,11 @@ const std::string ItemInfo::getName(const ItemColor color) const
return replaceColors(mName, color);
}
+const std::string ItemInfo::getNameEn(const ItemColor color) const
+{
+ return replaceColors(mNameEn, color);
+}
+
const std::string ItemInfo::replaceColors(std::string str,
const ItemColor color) const
{