summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Menaldo <guilherme.menaldo@outlook.com>2019-05-06 18:51:25 -0300
committerGuilherme Menaldo <guilherme.menaldo@outlook.com>2019-05-06 18:51:54 -0300
commit5d2da5198bdac950d2d3b6541251fdc21c4ef64f (patch)
tree0b3010754ade1a87f5f974d5da985cdc01a4f95d
parente7d0f067d0a4cff9ec0693cf61225f06e93ef4f9 (diff)
downloadhercules-5d2da5198bdac950d2d3b6541251fdc21c4ef64f.tar.gz
hercules-5d2da5198bdac950d2d3b6541251fdc21c4ef64f.tar.bz2
hercules-5d2da5198bdac950d2d3b6541251fdc21c4ef64f.tar.xz
hercules-5d2da5198bdac950d2d3b6541251fdc21c4ef64f.zip
Fixes a nullpo on MVP drops
-rw-r--r--src/map/mob.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 8dac1ea43..aa938a1e7 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2699,7 +2699,8 @@ static int mob_dead(struct mob_data *md, struct block_list *src, int type)
item.nameid = mdrop[i].nameid;
item.identify = itemdb->isidentified2(data);
- mob->setdropitem_options(&item, mdrop[i].options);
+ if (mdrop[i].options != NULL)
+ mob->setdropitem_options(&item, mdrop[i].options);
clif->mvp_item(mvp_sd, item.nameid);
log_mvp[0] = item.nameid;