Core/Players: Fixed possible crash in cooldown handling

This commit is contained in:
Shauren
2011-05-12 10:39:08 +02:00
parent 8e35ee612e
commit 32a98d343a

View File

@@ -22873,7 +22873,7 @@ void Player::AddGlobalCooldown(SpellEntry const *spellInfo, Spell *spell)
if (!(spellInfo->Attributes & (SPELL_ATTR0_UNK4|SPELL_ATTR0_PASSIVE)))
cdTime *= GetFloatValue(UNIT_MOD_CAST_SPEED);
else if (IsRangedWeaponSpell(spellInfo) && !spell->IsAutoRepeat())
else if (IsRangedWeaponSpell(spellInfo) && spell && !spell->IsAutoRepeat())
cdTime *= m_modAttackSpeedPct[RANGED_ATTACK];
if (cdTime > 1500.0f)