Core/LFG Fix crash on lfg boss kills

Port From (https://github.com/TrinityCore/TrinityCore/commit/9247723c0721207dcaea22141861855f4e0a173f)
This commit is contained in:
Hondacrx
2025-08-18 20:47:30 -04:00
parent 0f9b44e44b
commit 61f3ae2885
+1 -1
View File
@@ -1352,7 +1352,7 @@ namespace Game.DungeonFinding
uint gDungeonId = GetDungeon(gguid);
LFGDungeonData dungeonDone = GetLFGDungeon(gDungeonId);
// LFGDungeons can point to a DungeonEncounter from any difficulty so we need this kind of lenient check
if (!dungeonEncounterIds.Contains(dungeonDone.finalDungeonEncounterId))
if (dungeonDone.finalDungeonEncounterId == 0 || !dungeonEncounterIds.Contains(dungeonDone.finalDungeonEncounterId))
return;
FinishDungeon(gguid, gDungeonId, currMap);