summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-23 02:20:03 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-23 02:20:03 +0300
commit371293407ca9937a03942a2f8e32f2eb7c87940c (patch)
tree3cc7f056d64216bd144daabfb774db7e7836cef1 /src/map/itemdb.c
parentab9362782312ad81ef1c1d47dcac464607a710a2 (diff)
downloadevol-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.c8
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();
}