Pārlūkot izejas kodu

Fixed reloadmobdb status calculation (#3784)

Fixes #3783

Thanks to @Everade
Lemongrass3110 6 gadi atpakaļ
vecāks
revīzija
8e58f2ce24
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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