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.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();
}