Scripts/UK: Fixed crash. A better way must be implemented if there is any.

This commit is contained in:
Manuel Carrasco
2012-01-27 13:07:40 -03:00
parent e43b1cd750
commit ac40323ea0

View File

@@ -302,7 +302,7 @@ class spell_frost_tomb : public SpellScriptLoader
if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_DEATH)
if (Unit* caster = GetCaster())
if (caster->ToCreature() && caster->isAlive())
caster->ToCreature()->DespawnOrUnsummon();
caster->ToCreature()->DespawnOrUnsummon(1000);
}
void Register()