From abac1b34bcb84d65ef857076321af3acd22a3c9b 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 (cherry picked from commit f097e341f5afcac2dd0ae9dbb265201c0de2a934) --- src/server/scripts/Spells/spell_druid.cpp | 2 +- src/server/scripts/Spells/spell_item.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/Spells') diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp index 59ccf7a8bda..11a47b025d8 100644 --- a/src/server/scripts/Spells/spell_druid.cpp +++ b/src/server/scripts/Spells/spell_druid.cpp @@ -1543,7 +1543,7 @@ class spell_dru_starfall_dummy : public SpellScriptLoader void FilterTargets(std::list& targets) { - Trinity::Containers::RandomResizeList(targets, 2); + Trinity::Containers::RandomResize(targets, 2); } void HandleDummy(SpellEffIndex /*effIndex*/) diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index 6fb323074f5..01f3efb0e33 100644 --- a/src/server/scripts/Spells/spell_item.cpp +++ b/src/server/scripts/Spells/spell_item.cpp @@ -4329,7 +4329,7 @@ class spell_item_taunt_flag_targeting : public SpellScriptLoader return; } - Trinity::Containers::RandomResizeList(targets, 1); + Trinity::Containers::RandomResize(targets, 1); } void HandleDummy(SpellEffIndex /*effIndex*/) -- cgit v1.2.3