array index error
In spell_effects.cpp there are a couple of lines that were introduced with the Enchanter rune patch that can be called with a negative array index.
I noticed this call was being made for Necromancers casting their pet spell, but that is likely not the only case this happens. The pet spell fails the if((CalcBuffDuration(caster,this,spell_id)-1) != 0) and goes to the else assigning buffslot = -2 then the initialization to 0 of the buffs array for melee_rune and magic_rune is where buffslot(-2) is used on the array. This had the effect of setting Agility and Dexterity to 0 on the server side for the Necromancer, but didn't crash anything. Code:
bool Mob::SpellEffect(Mob* caster, int16 spell_id, float partial) Code:
if(buffslot >= 0) { |
This will be in version 1113.
|
All times are GMT -4. The time now is 06:12 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.