Fix crash in npc_escortAI::Start

Closes #812

--HG--
branch : trunk
This commit is contained in:
win32
2009-12-16 22:03:37 +02:00
parent 22a84868ee
commit c645c99310
+5
View File
@@ -453,10 +453,15 @@ void npc_escortAI::Start(bool bIsActiveAttacker, bool bRun, uint64 uiPlayerGUID,
}
if (WaypointList.empty())
{
if (pQuest != NULL)
{
error_db_log("TSCR: EscortAI Start with 0 waypoints (possible missing entry in script_waypoint. Quest: %u).", m_pQuestForEscort->GetQuestId());
return;
}
else
return;
}
//set variables
m_bIsActiveAttacker = bIsActiveAttacker;