summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/itemdb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 49d2a8387..566037c6a 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -593,7 +593,9 @@ static int itemdb_read_itemslottable(void)
for(p=buf;p-buf<s;){
int nameid,equip;
sscanf(p,"%d#%d#",&nameid,&equip);
- itemdb_search(nameid)->equip=equip;
+ struct item_data* item = itemdb_search(nameid);
+ if (item && itemdb_isequip2(item))
+ item->equip=equip;
p=strchr(p,10);
if(!p) break;
p++;