Core: Corrected NULL usage, it should only be used with pointers, not integers

This commit is contained in:
Shauren
2011-04-23 15:53:48 +02:00
parent a2a751b9d6
commit 8898db8b27
56 changed files with 216 additions and 217 deletions

View File

@@ -348,7 +348,7 @@ int32 SpellScript::GetHitDamage()
if (!IsInHitPhase())
{
sLog->outError("TSCR: Script: `%s` Spell: `%u`: function SpellScript::GetHitDamage was called while spell not in hit phase!", m_scriptName->c_str(), m_scriptSpellId);
return NULL;
return 0;
}
return m_spell->m_damage;
}
@@ -368,7 +368,7 @@ int32 SpellScript::GetHitHeal()
if (!IsInHitPhase())
{
sLog->outError("TSCR: Script: `%s` Spell: `%u`: function SpellScript::GetHitHeal was called while spell not in hit phase!", m_scriptName->c_str(), m_scriptSpellId);
return NULL;
return 0;
}
return m_spell->m_healing;
}