Scripts/Toc: Fix a possible crash with grand champions encounter.

This commit is contained in:
kaelima
2011-12-21 01:59:36 +01:00
parent 8cf2062c1f
commit 6ccf95af4c

View File

@@ -839,7 +839,8 @@ public:
if (target && me->IsInRange(target, 5.0f, 30.0f, false))
{
DoCast(target, SPELL_MULTI_SHOT);
} else
}
else if (target)
{
Map::PlayerList const& players = me->GetMap()->GetPlayers();
if (me->GetMap()->IsDungeon() && !players.isEmpty())