Core/Utilities: Rename RandomResizeList->RandomResize as it is no longer restricted to a list

* Also fix gcc build
This commit is contained in:
Shauren
2017-03-23 00:11:58 +01:00
parent 408d876813
commit f097e341f5
26 changed files with 55 additions and 44 deletions
@@ -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<StorageType, Predicate>(listCopy, std::forward<Predicate>(predicate), max);
Trinity::Containers::RandomResize<StorageType, Predicate>(listCopy, std::forward<Predicate>(predicate), max);
for (StorageType::iterator i = listCopy.begin(); i != listCopy.end(); )
{
Creature* summon = ObjectAccessor::GetCreature(*me, *i++);