diff options
author | Wyrserth <wyrserth@protonmail.com> | 2019-07-07 02:49:40 +0200 |
---|---|---|
committer | Wyrserth <wyrserth@protonmail.com> | 2019-07-07 02:49:40 +0200 |
commit | 6199d458c3ec4df3b0643a885e3789c88bb4e8cd (patch) | |
tree | 76fa61b9f7097fdef6dc73d436c9ac29ac00fae9 /src | |
parent | 37862942ce61ceffe5440d67efe7db553fa22f9b (diff) |
Core/Misc: use Trinity's RandomShuffle() instead of soon-to-be-deprecated std::random_shuffle().
Thanks Riztazz for noticing!
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Northrend/Nexus/Oculus/boss_urom.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/scripts/Northrend/Nexus/Oculus/boss_urom.cpp b/src/server/scripts/Northrend/Nexus/Oculus/boss_urom.cpp index 06026f42a3f..74992196fa0 100644 --- a/src/server/scripts/Northrend/Nexus/Oculus/boss_urom.cpp +++ b/src/server/scripts/Northrend/Nexus/Oculus/boss_urom.cpp @@ -15,6 +15,7 @@ * with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "Containers.h" #include "ScriptMgr.h" #include "MotionMaster.h" #include "oculus.h" @@ -103,9 +104,9 @@ class boss_urom : public CreatureScript _isInCenter = false; for (uint8 i = 0; i < 3; ++i) - _group[i] = i; + _group.push_back(i); - std::random_shuffle(_group, _group + 3); + Trinity::Containers::RandomShuffle(_group); } void EnterEvadeMode(EvadeReason why) override @@ -333,7 +334,7 @@ class boss_urom : public CreatureScript float _x, _y; bool _isInCenter; uint8 _platform; - uint8 _group[3]; + std::vector<uint8> _group; }; CreatureAI* GetAI(Creature* creature) const override |