From f097e341f5afcac2dd0ae9dbb265201c0de2a934 Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 23 Mar 2017 00:11:58 +0100 Subject: Core/Utilities: Rename RandomResizeList->RandomResize as it is no longer restricted to a list * Also fix gcc build --- src/server/game/AI/ScriptedAI/ScriptedCreature.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/game/AI/ScriptedAI') diff --git a/src/server/game/AI/ScriptedAI/ScriptedCreature.h b/src/server/game/AI/ScriptedAI/ScriptedCreature.h index 6d377e5f874..3cb9677f00a 100644 --- a/src/server/game/AI/ScriptedAI/ScriptedCreature.h +++ b/src/server/game/AI/ScriptedAI/ScriptedCreature.h @@ -111,7 +111,7 @@ public: { // We need to use a copy of SummonList here, otherwise original SummonList would be modified StorageType listCopy = storage_; - Trinity::Containers::RandomResizeList(listCopy, std::forward(predicate), max); + Trinity::Containers::RandomResize(listCopy, std::forward(predicate), max); for (StorageType::iterator i = listCopy.begin(); i != listCopy.end(); ) { Creature* summon = ObjectAccessor::GetCreature(*me, *i++); -- cgit v1.2.3