*Fix a typo in DoTeleportAll function - by Iskander

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2009-01-03 12:42:23 +01:00
parent 42ae9aafe3
commit a8feadf34c
2 changed files with 1 additions and 4 deletions

View File

@@ -736,7 +736,7 @@ void ScriptedAI::DoTeleportAll(float x, float y, float z, float o)
Map::PlayerList const &PlayerList = map->GetPlayers();
for(Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
if (Player* i_pl = i->getSource())
if (!i_pl->isAlive())
if (i_pl->isAlive())
i_pl->TeleportTo(m_creature->GetMapId(), x, y, z, o, TELE_TO_NOT_LEAVE_COMBAT);
}