summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-01-19 15:10:31 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-01-19 15:10:31 +0000
commit44d80f34a2527491460e1fbeb1d4627d93468bce (patch)
tree10a8bb116707abc072172d93bd21dbdf001ac33e /src/resources/itemdb.cpp
parent9c9c105cd26a0b8349cd529c31c2a0800da697ce (diff)
downloadmana-44d80f34a2527491460e1fbeb1d4627d93468bce.tar.gz
mana-44d80f34a2527491460e1fbeb1d4627d93468bce.tar.bz2
mana-44d80f34a2527491460e1fbeb1d4627d93468bce.tar.xz
mana-44d80f34a2527491460e1fbeb1d4627d93468bce.zip
Fixed interpretation of weapon types in items.xml.
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r--src/resources/itemdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index 6d7f5944..c03e42a2 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -151,7 +151,7 @@ void ItemDB::load()
std::string name = XML::getProperty(node, "name", "");
std::string image = XML::getProperty(node, "image", "");
std::string description = XML::getProperty(node, "description", "");
- int weaponType = itemTypeFromString(XML::getProperty(node, "weapon_type", ""));
+ int weaponType = weaponTypeFromString(XML::getProperty(node, "weapon-type", ""));
ItemInfo *itemInfo = new ItemInfo;
itemInfo->setImageName(image);