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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 566037c6a..ee1e95ac7 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -592,8 +592,8 @@ static int itemdb_read_itemslottable(void)
buf[s]=0;
for(p=buf;p-buf<s;){
int nameid,equip;
- sscanf(p,"%d#%d#",&nameid,&equip);
struct item_data* item = itemdb_search(nameid);
+ sscanf(p,"%d#%d#",&nameid,&equip);
if (item && itemdb_isequip2(item))
item->equip=equip;
p=strchr(p,10);