aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwin32 <none@none>2009-12-16 22:03:37 +0200
committerwin32 <none@none>2009-12-16 22:03:37 +0200
commitc645c993106cddf210d427ff74f8e0828e322dc2 (patch)
tree1b5a6143810e84465dc4101e82c88269730e91cf
parent22a84868ee29a582467aad5847238673cafb52d5 (diff)
Fix crash in npc_escortAI::Start
Closes #812 --HG-- branch : trunk
-rw-r--r--src/bindings/scripts/base/escort_ai.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bindings/scripts/base/escort_ai.cpp b/src/bindings/scripts/base/escort_ai.cpp
index e751d6c691d..9b31d032a71 100644
--- a/src/bindings/scripts/base/escort_ai.cpp
+++ b/src/bindings/scripts/base/escort_ai.cpp
@@ -454,8 +454,13 @@ void npc_escortAI::Start(bool bIsActiveAttacker, bool bRun, uint64 uiPlayerGUID,
if (WaypointList.empty())
{
- error_db_log("TSCR: EscortAI Start with 0 waypoints (possible missing entry in script_waypoint. Quest: %u).", m_pQuestForEscort->GetQuestId());
- return;
+ 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