diff options
author | ariel- <ariel-@users.noreply.github.com> | 2017-01-24 23:38:21 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2017-01-24 23:38:21 -0300 |
commit | 2c20b368bc05bd58b5a77825dc2c8083386ad6c4 (patch) | |
tree | b05a5e2c689f4a19b461e48c0d51299845bd4196 | |
parent | 5b6994b7aee99ebd6ee3849ef8ba6d7e5395ffc2 (diff) |
Core/EscortAI: fix invalid iterator dereference
-rw-r--r-- | src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp b/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp index dabd75918d8..369c92d4153 100644 --- a/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp +++ b/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp @@ -339,7 +339,7 @@ void npc_escortAI::MovementInform(uint32 moveType, uint32 pointId) CurrentWP = WaypointList.begin(); m_uiWPWaitTimer = 1; } - else + else if (CurrentWP != WaypointList.end()) { //Make sure that we are still on the right waypoint if (CurrentWP->id != pointId) |