diff options
| author | Kudlaty <none@none> | 2009-08-16 02:12:14 +0200 |
|---|---|---|
| committer | Kudlaty <none@none> | 2009-08-16 02:12:14 +0200 |
| commit | 93709273eca3e265612ecd0ca6c04a8de94aab3e (patch) | |
| tree | aec686b1d4047390ebc7cea6323870de94d6af86 /src/bindings/scripts/base | |
| parent | 32078e0624246b6e093b40087ae97add6112a58a (diff) | |
Merge [SD2]
r1294 Let EscortAI fill waypoint list at Start(). Scripts using escortAI then no longer need to call FillPointMovementListForCreature().
r1295 Move one misplaced source file.
--HG--
branch : trunk
Diffstat (limited to 'src/bindings/scripts/base')
| -rw-r--r-- | src/bindings/scripts/base/escortAI.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bindings/scripts/base/escortAI.cpp b/src/bindings/scripts/base/escortAI.cpp index 4fcfb00b0f9..52b398cd59c 100644 --- a/src/bindings/scripts/base/escortAI.cpp +++ b/src/bindings/scripts/base/escortAI.cpp @@ -345,6 +345,11 @@ void npc_escortAI::Start(bool bIsActiveAttacker, bool bRun, uint64 uiPlayerGUID, return; } + if (!WaypointList.empty()) + WaypointList.clear(); + + FillPointMovementListForCreature(); + if (WaypointList.empty()) { error_db_log("TSCR: EscortAI Start with 0 waypoints (possible missing entry in script_waypoint)"); |
