summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.cpp
diff options
context:
space:
mode:
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
{