diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-01-19 15:10:31 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-01-19 15:10:31 +0000 |
commit | 44d80f34a2527491460e1fbeb1d4627d93468bce (patch) | |
tree | 10a8bb116707abc072172d93bd21dbdf001ac33e | |
parent | 9c9c105cd26a0b8349cd529c31c2a0800da697ce (diff) | |
download | mana-44d80f34a2527491460e1fbeb1d4627d93468bce.tar.gz mana-44d80f34a2527491460e1fbeb1d4627d93468bce.tar.bz2 mana-44d80f34a2527491460e1fbeb1d4627d93468bce.tar.xz mana-44d80f34a2527491460e1fbeb1d4627d93468bce.zip |
Fixed interpretation of weapon types in items.xml.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/resources/itemdb.cpp | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2007-01-19 Philipp Sehmisch <tmw@crushnet.org> + + * src/resources/itemdb.cpp: Fixed interpretation of weapon types in + items.xml. + 2007-01-10 Philipp Sehmisch <tmw@crushnet.org> * src/resources/itemdb.cpp, src/resources/iteminfo.cpp, 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); |