mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-17 01:04:34 +00:00
fix(Core/ObjectGuid): prevent creating copies when looping objects (#6852)
This commit is contained in:
@@ -191,7 +191,7 @@ public:
|
||||
|
||||
bool IsValidExplosionTarget(WorldObject* target)
|
||||
{
|
||||
for (ObjectGuid const guid : blockList)
|
||||
for (ObjectGuid const& guid : blockList)
|
||||
{
|
||||
if (target->GetGUID() == guid)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user