summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog.txt1
-rw-r--r--src/map/itemdb.c8
2 files changed, 7 insertions, 2 deletions
diff --git a/Changelog.txt b/Changelog.txt
index afdfb1b3a..61dc1a64d 100644
--- a/Changelog.txt
+++ b/Changelog.txt
@@ -1,5 +1,6 @@
Date Added
12/27
+ * Corrected a bad error in itemdb_read_itemslottable [celest]
* Corrected wrong logging of text in int_guild.c, thanks to Alex14 [celest]
* Summoned monsters will not give exp and items [celest]
* Added the 6 new Yuno fields to maps_athena.conf [celest]
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index ee1e95ac7..92afe32fb 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -592,10 +592,14 @@ static int itemdb_read_itemslottable(void)
buf[s]=0;
for(p=buf;p-buf<s;){
int nameid,equip;
- struct item_data* item = itemdb_search(nameid);
+ struct item_data* item;
sscanf(p,"%d#%d#",&nameid,&equip);
- if (item && itemdb_isequip2(item))
+ item = itemdb_search(nameid);
+ if (item && itemdb_isequip2(item)) {
+ if (item->equip != equip)
+ printf ("%s - %d > %d\n", item->name, item->equip, equip);
item->equip=equip;
+ }
p=strchr(p,10);
if(!p) break;
p++;