diff options
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r-- | src/map/itemdb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index cccabc5..6fb9f02 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -22,6 +22,8 @@ bool eitemdb_is_item_usable(struct item_data *item) { hookStop(); + if (!item) + return false; return item->type == IT_HEALING || item->type == IT_USABLE || item->type == IT_CASH || item->type == IT_PETEGG; } |