Explorar o código

Fixes MF_PVP_NIGHTMAREDROP not clearing on reload (#5160)

* Fixes MF_PVP_NIGHTMAREDROP not being cleared during a script reload and resulting in the drop list reaching the max size.
Aleos %!s(int64=4) %!d(string=hai) anos
pai
achega
e2f1bca401
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/map/map.cpp

+ 1 - 0
src/map/map.cpp

@@ -3649,6 +3649,7 @@ void map_flags_init(void){
 
 		mapdata->flag.clear();
 		mapdata->flag.reserve(MF_MAX); // Reserve the bucket size
+		mapdata->drop_list.clear();
 		args.flag_val = 100;
 
 		// additional mapflag data