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

This commit is contained in:
Kandera
2012-04-03 18:56:34 -04:00
parent e231cf9462
commit ef6b99cd37

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;
}