aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellScript.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2011-04-23 15:53:48 +0200
committerShauren <shauren.trinity@gmail.com>2011-04-23 15:53:48 +0200
commit8898db8b272cc3745a76f4cd284912866ca884c5 (patch)
tree4c497fcf6bd68651907cd77c7e7e61e58d47a171 /src/server/game/Spells/SpellScript.cpp
parenta2a751b9d6ee3a86045cca2e1444499bd290708b (diff)
Core: Corrected NULL usage, it should only be used with pointers, not integers
Diffstat (limited to 'src/server/game/Spells/SpellScript.cpp')
-rwxr-xr-xsrc/server/game/Spells/SpellScript.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellScript.cpp b/src/server/game/Spells/SpellScript.cpp
index fcb3bef7e30..458a34c59c5 100755
--- a/src/server/game/Spells/SpellScript.cpp
+++ b/src/server/game/Spells/SpellScript.cpp
@@ -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;
}