Core/Spells: fix crash with wintergrasp water spell script.

This commit is contained in:
Kandera committed 2012-04-03 18:56:34 -04:00
1 parent e231cf9462
commit ef6b99cd37
1 file changed
+1 -1
+1 -1
View File
@@ -2601,7 +2601,7 @@ class spell_gen_wg_water : public SpellScriptLoader
SpellCastResult CheckCast()
{
if (!GetSpellInfo()->CheckTargetCreatureType(GetTargetUnit()))
if (!GetSpellInfo()->CheckTargetCreatureType(GetCaster()))
return SPELL_FAILED_DONT_REPORT;
return SPELL_CAST_OK;
}