diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-23 02:20:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-23 02:20:03 +0300 |
commit | 371293407ca9937a03942a2f8e32f2eb7c87940c (patch) | |
tree | 3cc7f056d64216bd144daabfb774db7e7836cef1 /src/map/itemdb.c | |
parent | ab9362782312ad81ef1c1d47dcac464607a710a2 (diff) | |
download | evol-hercules-371293407ca9937a03942a2f8e32f2eb7c87940c.tar.gz evol-hercules-371293407ca9937a03942a2f8e32f2eb7c87940c.tar.bz2 evol-hercules-371293407ca9937a03942a2f8e32f2eb7c87940c.tar.xz evol-hercules-371293407ca9937a03942a2f8e32f2eb7c87940c.zip |
Fix hookStop usage.
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r-- | src/map/itemdb.c | 8 |
1 files changed, 7 insertions, 1 deletions
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(); } |