aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnubisss <none@none>2009-12-19 13:38:30 +0100
committerAnubisss <none@none>2009-12-19 13:38:30 +0100
commitf3987b72ae69a62485a88c6e26c759dda94345fd (patch)
treeddd9de1ecdc2330e5b26b59ea7610dea581935ee
parente13c23160fa584362281406b034a417cc5dc349e (diff)
Remove a hack-check. pQuest can NOT be NULL in an EscortAI.
--HG-- branch : trunk
-rw-r--r--src/bindings/scripts/base/escort_ai.cpp9
1 files changed, 2 insertions, 7 deletions
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