summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c8
1 files changed, 6 insertions, 2 deletions
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++;