From f3987b72ae69a62485a88c6e26c759dda94345fd Mon Sep 17 00:00:00 2001 From: Anubisss Date: Sat, 19 Dec 2009 13:38:30 +0100 Subject: Remove a hack-check. pQuest can NOT be NULL in an EscortAI. --HG-- branch : trunk --- src/bindings/scripts/base/escort_ai.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/bindings/scripts/base/escort_ai.cpp b/src/bindings/scripts/base/escort_ai.cpp index 07f0778389e..2e22c287be2 100644 --- a/src/bindings/scripts/base/escort_ai.cpp +++ b/src/bindings/scripts/base/escort_ai.cpp @@ -454,13 +454,8 @@ 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).", pQuest->GetQuestId()); - return; - } - else - return; + error_db_log("TSCR: EscortAI Start with 0 waypoints (possible missing entry in script_waypoint. Quest: %u).", pQuest->GetQuestId()); + return; } //set variables -- cgit v1.2.3