summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-30 20:28:28 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-30 20:28:28 +0000
commit86ee4c6435ec085abdef4cbbadcc86881e5fc48b (patch)
tree198302660bce63001e7fca276e814fefac25378f /src/resources
parentba3e78bc28c8862d38a0555fdbb880cf2010f621 (diff)
downloadmana-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.cpp4
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);