Linux fix.

This commit is contained in:
SecretsOTheP 2014-11-03 23:01:55 -05:00
parent 29d614421f
commit d4139b98e3
2 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@ Secrets: Fixed an overflow in melee lifetap calculations (int16 vs int32)
Secrets: Fixed overflow on AC and ATK values that can go out of range.
Secrets: Merc/Bot fixes for previous updates.
Secrets: Changed a lot of int16s for stat-related functions to int32 because they were causing combat formula overflows (int16/int32 mismatch).
Secrets: Linux fix?
== 11/02/2014 ==
Akkadius: Added out of range checking for Spell Save/Loads

View File

@ -5664,7 +5664,7 @@ bool Mob::TryDivineSave()
{
SetHP(1);
int16 EffectsToTry[] =
int32 EffectsToTry[] =
{
aabonuses.DivineSaveChance[1],
itembonuses.DivineSaveChance[1],
@ -5707,7 +5707,7 @@ bool Mob::TryDeathSave() {
int SuccessChance = 0;
int buffSlot = spellbonuses.DeathSave[1];
int16 UD_HealMod = 0;
int32 UD_HealMod = 0;
int HealAmt = 300; //Death Pact max Heal
if(buffSlot >= 0){