diff options
Diffstat (limited to 'src/server/game/Instances/InstanceScript.cpp')
-rw-r--r-- | src/server/game/Instances/InstanceScript.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/Instances/InstanceScript.cpp b/src/server/game/Instances/InstanceScript.cpp index 0a4c3a42cda..d802a96b01d 100644 --- a/src/server/game/Instances/InstanceScript.cpp +++ b/src/server/game/Instances/InstanceScript.cpp @@ -772,14 +772,14 @@ void InstanceScript::UpdateEncounterState(EncounterCreditType type, uint32 credi for (auto const& encounter : *encounters) { - if (encounter->creditType == type && encounter->creditEntry == creditEntry) + if (encounter.creditType == type && encounter.creditEntry == creditEntry) { - completedEncounters |= 1 << encounter->dbcEntry->Bit; - if (encounter->lastEncounterDungeon) + completedEncounters |= 1 << encounter.dbcEntry->Bit; + if (encounter.lastEncounterDungeon) { - dungeonId = encounter->lastEncounterDungeon; + dungeonId = encounter.lastEncounterDungeon; TC_LOG_DEBUG("lfg", "UpdateEncounterState: Instance %s (instanceId %u) completed encounter %s. Credit Dungeon: %u", - instance->GetMapName(), instance->GetInstanceId(), encounter->dbcEntry->Name[sWorld->GetDefaultDbcLocale()], dungeonId); + instance->GetMapName(), instance->GetInstanceId(), encounter.dbcEntry->Name[sWorld->GetDefaultDbcLocale()], dungeonId); break; } } |