summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-24 21:46:27 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-24 21:46:27 +0300
commite2fec6a64a403df523d64540f70c73b99fbf491c (patch)
tree34ee4d272252990071bd84cff303b956e4b57c21 /src/map/itemdb.c
parentcf9c4ca35fefcf392269179785371b679689364c (diff)
downloadevol-hercules-e2fec6a64a403df523d64540f70c73b99fbf491c.tar.gz
evol-hercules-e2fec6a64a403df523d64540f70c73b99fbf491c.tar.bz2
evol-hercules-e2fec6a64a403df523d64540f70c73b99fbf491c.tar.xz
evol-hercules-e2fec6a64a403df523d64540f70c73b99fbf491c.zip
map: add missing checks.
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c2
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;
}