From 45c04c20bb726adfa986c1af4652a8ac0d3991e2 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Thu, 29 Apr 2021 17:48:34 +0200 Subject: [PATCH] fixed build --- src/server/game/Instances/InstanceScript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Instances/InstanceScript.cpp b/src/server/game/Instances/InstanceScript.cpp index 6da4901357a..46b4c1a6859 100644 --- a/src/server/game/Instances/InstanceScript.cpp +++ b/src/server/game/Instances/InstanceScript.cpp @@ -753,7 +753,7 @@ void InstanceScript::UpdateEncounterState(EncounterCreditType type, uint32 credi for (LFGDungeonEntry const* dungeonEntry : sLFGDungeonStore) { uint8 difficulty = encounter->dbcEntry->DifficultyID != -1 ? encounter->dbcEntry->DifficultyID : instance->GetDifficulty(); - if (dungeonEntry->MapID != instance->GetId() || dungeonEntry->DifficultyID != instance->GetDifficulty()) + if (dungeonEntry->MapID != instance->GetId() || dungeonEntry->DifficultyID != difficulty) continue; dungeonId = dungeonEntry->ID;