diff options
author | ariel- <ariel-@users.noreply.github.com> | 2017-03-28 01:52:49 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2017-03-28 01:52:49 -0300 |
commit | 2f99fa09c9bacbad376d7a296c3311f94ec8a552 (patch) | |
tree | e3eebad6cda4b6a0338d5226331ae8942a6cd886 /src/server/game/Instances/InstanceScript.cpp | |
parent | 97e54fe4582e59c268bd77020c59f467d0b20327 (diff) |
Core/AI: AreaBoundary refactor
- Added an auxiliary function IsInBounds to base CreatureAI
- Changed container to vector. Set had no sense because we're storing new pointers, they have different addresses even if the boundary is the same
Diffstat (limited to 'src/server/game/Instances/InstanceScript.cpp')
-rw-r--r-- | src/server/game/Instances/InstanceScript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Instances/InstanceScript.cpp b/src/server/game/Instances/InstanceScript.cpp index 75245573e49..19e87711f71 100644 --- a/src/server/game/Instances/InstanceScript.cpp +++ b/src/server/game/Instances/InstanceScript.cpp @@ -120,7 +120,7 @@ void InstanceScript::LoadBossBoundaries(const BossBoundaryData& data) { for (BossBoundaryEntry const& entry : data) if (entry.BossId < bosses.size()) - bosses[entry.BossId].boundary.insert(entry.Boundary); + bosses[entry.BossId].boundary.push_back(entry.Boundary); } void InstanceScript::LoadMinionData(const MinionData* data) |