diff --git a/changelog.txt b/changelog.txt index b93bb91af..380793866 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/zone/spell_effects.cpp b/zone/spell_effects.cpp index fb50f1203..b97ca0244 100644 --- a/zone/spell_effects.cpp +++ b/zone/spell_effects.cpp @@ -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){