mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Core/Pooling): Fixed less and less objects from pools being spawned the longer the server is running (#5572)
This commit is contained in:
@@ -1050,7 +1050,7 @@ public:
|
||||
|
||||
void FilterTargets(std::list<WorldObject*>& targets)
|
||||
{
|
||||
acore::Containers::RandomResizeList(targets, 2);
|
||||
acore::Containers::RandomResize(targets, 2);
|
||||
}
|
||||
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
|
||||
@@ -768,7 +768,7 @@ public:
|
||||
void FilterTargets(std::list<WorldObject*>& targets)
|
||||
{
|
||||
targets.remove(GetCaster());
|
||||
acore::Containers::RandomResizeList(targets, _count);
|
||||
acore::Containers::RandomResize(targets, _count);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
@@ -652,7 +652,7 @@ public:
|
||||
|
||||
void CountTargets(std::list<WorldObject*>& targetList)
|
||||
{
|
||||
acore::Containers::RandomResizeList(targetList, GetSpellValue()->MaxAffectedTargets);
|
||||
acore::Containers::RandomResize(targetList, GetSpellValue()->MaxAffectedTargets);
|
||||
_targetCount = targetList.size();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user