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
+7 -2
View File
@@ -454,8 +454,13 @@ void npc_escortAI::Start(bool bIsActiveAttacker, bool bRun, uint64 uiPlayerGUID,
if (WaypointList.empty()) if (WaypointList.empty())
{ {
error_db_log("TSCR: EscortAI Start with 0 waypoints (possible missing entry in script_waypoint. Quest: %u).", m_pQuestForEscort->GetQuestId()); if (pQuest != NULL)
return; {
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 //set variables