diff options
author | Haru <haru@dotalux.com> | 2019-05-07 01:36:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-07 01:36:15 +0200 |
commit | e7864e85280ba94accddce63e6880d58e12958ab (patch) | |
tree | 4453522de79e8205867d8b645aeea7a0ac3815fb | |
parent | 45a3cb0def45cbd0bfb6769e116da84edc686d79 (diff) | |
parent | 5d2da5198bdac950d2d3b6541251fdc21c4ef64f (diff) | |
download | hercules-e7864e85280ba94accddce63e6880d58e12958ab.tar.gz hercules-e7864e85280ba94accddce63e6880d58e12958ab.tar.bz2 hercules-e7864e85280ba94accddce63e6880d58e12958ab.tar.xz hercules-e7864e85280ba94accddce63e6880d58e12958ab.zip |
Merge pull request #2461 from guilherme-gm/fix-randomopt
Fixes a nullpo on MVP drops
-rw-r--r-- | src/map/mob.c | 3 |
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; |