fix(Core/ObjectGuid): prevent creating copies when looping objects (#6852)
This commit is contained in:
parent
2fcafa5f39
commit
4103fca5a4
40 changed files with 69 additions and 69 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue