From e2fec6a64a403df523d64540f70c73b99fbf491c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 24 Feb 2015 21:46:27 +0300 Subject: map: add missing checks. --- src/map/itemdb.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/itemdb.c') 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; } -- cgit v1.2.3-60-g2f50