Core: Fix warnings

This commit is contained in:
Vincent-Michael committed 2013-08-18 13:54:20 +02:00
1 parent 7dbf68cbfc
commit 9eb01d63bd
2 files changed
+3 -4

No files matched your search

+3 -3
View File
@@ -3052,12 +3052,12 @@ void Spell::prepare(SpellCastTargets const* targets, AuraEffect const* triggered
if (Player* player = m_caster->ToPlayer())
{
if (!m_caster->ToPlayer()->GetCommandStatus(CHEAT_CASTTIME))
if (!player->GetCommandStatus(CHEAT_CASTTIME))
{
m_caster->ToPlayer()->SetSpellModTakingSpell(this, true);
player->SetSpellModTakingSpell(this, true);
// calculate cast time (calculated after first CheckCast check to prevent charge counting for first CheckCast fail)
m_casttime = m_spellInfo->CalcCastTime(this);
m_caster->ToPlayer()->SetSpellModTakingSpell(this, false);
player->SetSpellModTakingSpell(this, false);
}
else
m_casttime = 0; // Set cast time to 0 if .cheat casttime is enabled.