Explorar o código

Fixed reloadmobdb status calculation (#3784)

Fixes #3783

Thanks to @Everade
Lemongrass3110 %!s(int64=6) %!d(string=hai) anos
pai
achega
8e58f2ce24
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/map/mob.cpp

+ 3 - 0
src/map/mob.cpp

@@ -5352,6 +5352,9 @@ static int mob_reload_sub( struct mob_data *md, va_list args ){
 	// Relink the mob to the new database entry
 	md->db = mob_db(md->mob_id);
 
+	// Recalculate the monster status based on the new data
+	status_calc_mob(md, SCO_NONE);
+
 	// If the view data was not overwritten manually
 	if( !md->vd_changed ){
 		// Get the new view data from the mob database