diff options
author | Andrei Karas <akaras@inbox.ru> | 2020-05-14 01:19:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2020-06-01 01:08:50 +0300 |
commit | 039e33181f1c7674e7a3d5940cb487da4ebdc3a0 (patch) | |
tree | 85894470f36ff96c7ca5187de27438967cd2a612 /src/map | |
parent | 99108df7afc086ecde40d0e42dec253b68fea7ed (diff) | |
download | hercules-039e33181f1c7674e7a3d5940cb487da4ebdc3a0.tar.gz hercules-039e33181f1c7674e7a3d5940cb487da4ebdc3a0.tar.bz2 hercules-039e33181f1c7674e7a3d5940cb487da4ebdc3a0.tar.xz hercules-039e33181f1c7674e7a3d5940cb487da4ebdc3a0.zip |
Add map check in mob_dead
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/mob.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index b6ba5e5a9..229391ae8 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2426,6 +2426,7 @@ static int mob_dead(struct mob_data *md, struct block_list *src, int type) nullpo_retr(3, md); m = md->bl.m; + Assert_retr(false, m >= 0 && m < map->count); mstatus = &md->status; if( md->guardian_data && md->guardian_data->number >= 0 && md->guardian_data->number < MAX_GUARDIANS ) |