Fixed a potential crash (#3439)

* Fixes #3413 and fixes #3437.
* Removed extra dynamic storage clearings.
Thanks to @ecdarreola and @mazvi!
This commit is contained in:
Aleos 2018-08-28 19:22:41 -04:00 committed by GitHub
parent f14885bc9b
commit ae7cb65a96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2760,10 +2760,7 @@ int map_delinstancemap(int m)
aFree(mapdata->block);
aFree(mapdata->block_mob);
map_free_questinfo(m);
mapdata->flag.clear();
mapdata->drop_list.clear();
mapdata->damage_adjust = {};
mapdata->skill_damage.clear();
mapindex_removemap( mapdata->index );
map_removemapdb(mapdata);