From 44d80f34a2527491460e1fbeb1d4627d93468bce Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Sat, 19 Jan 2008 15:10:31 +0000 Subject: Fixed interpretation of weapon types in items.xml. --- src/resources/itemdb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resources/itemdb.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); -- cgit v1.2.3-70-g09d2