Corrected a potential overflow in item bonuses (#3709)

* Fixes #3703.
* Fixed bHealPower, bHealPower2, bSPGainValue, bHPGainValue, bMagicSPGainValue, and bMagicHPGainValue having a chance to potentially overflow from signed short limit.
Thanks to @Everade!
This commit is contained in:
Aleos
2018-11-29 18:54:59 -05:00
committed by GitHub
parent e02e85b65e
commit 5cc368a177

View File

@@ -472,8 +472,8 @@ struct map_session_data {
short splash_range, splash_add_range;
short add_steal_rate;
short add_heal_rate, add_heal2_rate;
short sp_gain_value, hp_gain_value, magic_sp_gain_value, magic_hp_gain_value;
int add_heal_rate, add_heal2_rate;
int sp_gain_value, hp_gain_value, magic_sp_gain_value, magic_hp_gain_value;
short sp_vanish_rate, hp_vanish_rate;
short sp_vanish_per, hp_vanish_per;
unsigned short unbreakable; // chance to prevent ANY equipment breaking [celest]