diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-08-30 20:28:28 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-08-30 20:28:28 +0000 |
commit | 86ee4c6435ec085abdef4cbbadcc86881e5fc48b (patch) | |
tree | 198302660bce63001e7fca276e814fefac25378f /src/resources | |
parent | ba3e78bc28c8862d38a0555fdbb880cf2010f621 (diff) | |
download | mana-86ee4c6435ec085abdef4cbbadcc86881e5fc48b.tar.gz mana-86ee4c6435ec085abdef4cbbadcc86881e5fc48b.tar.bz2 mana-86ee4c6435ec085abdef4cbbadcc86881e5fc48b.tar.xz mana-86ee4c6435ec085abdef4cbbadcc86881e5fc48b.zip |
Reverted equipment database and included original low-ID items in items.xml for
compatibility with eAthena, which doesn't support View ID to come above 255.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/itemdb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index cfc485cb..18952ae9 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -109,11 +109,11 @@ void ItemDB::load() std::string effect = XML::getProperty(node, "effect", ""); std::string attackType = XML::getProperty(node, "attacktype", ""); - if (id && name != "") + if (id) { ItemInfo *itemInfo = new ItemInfo(); itemInfo->setImage(image); - itemInfo->setName(name); + itemInfo->setName((name == "") ? "Unnamed" : name); itemInfo->setDescription(description); itemInfo->setEffect(effect); itemInfo->setType(type); |