Browse Source

Fixed an issue with bonus recalculation

Fixes #3725

Thanks to @jester-frost and @laziem
Lemongrass3110 6 years ago
parent
commit
5597105451
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/map/status.cpp

+ 2 - 1
src/map/status.cpp

@@ -3556,9 +3556,10 @@ int status_calc_pc_sub(struct map_session_data* sd, enum e_status_calc_opt opt)
 		+ sizeof(sd->norecover_state_race)
 		+ sizeof(sd->hp_vanish_race)
 		+ sizeof(sd->sp_vanish_race)
-		+ sizeof(sd->bonus)
 	);
 
+	memset(&sd->bonus, 0, sizeof(sd->bonus));
+
 	// Autobonus
 	pc_delautobonus(sd, sd->autobonus, true);
 	pc_delautobonus(sd, sd->autobonus2, true);