mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
fix(Core/ObjectGuid): prevent creating copies when looping objects (#6852)
This commit is contained in:
@@ -983,7 +983,7 @@ public:
|
||||
{
|
||||
if (!Patients.empty())
|
||||
{
|
||||
for (ObjectGuid const guid : Patients)
|
||||
for (ObjectGuid const& guid : Patients)
|
||||
{
|
||||
if (Creature* patient = ObjectAccessor::GetCreature(*me, guid))
|
||||
patient->setDeathState(JUST_DIED);
|
||||
|
||||
Reference in New Issue
Block a user