From 371293407ca9937a03942a2f8e32f2eb7c87940c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Dec 2014 02:20:03 +0300 Subject: Fix hookStop usage. --- src/map/itemdb.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/map/itemdb.c') diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 5d1f51b..587441c 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -30,15 +30,21 @@ void eitemdb_readdb_additional_fields(int *itemid, int *n __attribute__ ((unused)), const char *source __attribute__ ((unused))) { - hookStop(); struct item_data *item = itemdb->exists(*itemid); int i32 = 0; if (!item) + { + hookStop(); return; + } struct ItemdExt *data = itemd_get(item); if (!data) + { + hookStop(); return; + } if (libconfig->setting_lookup_int(it, "FloorLifeTime", &i32) && i32 >= 0) data->floorLifeTime = i32; + hookStop(); } -- cgit v1.2.3-60-g2f50