From 5d2da5198bdac950d2d3b6541251fdc21c4ef64f Mon Sep 17 00:00:00 2001 From: Guilherme Menaldo Date: Mon, 6 May 2019 18:51:25 -0300 Subject: Fixes a nullpo on MVP drops --- src/map/mob.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-60-g2f50