Core/LFG Fix crash on lfg boss kills
Port From (https://github.com/TrinityCore/TrinityCore/commit/9247723c0721207dcaea22141861855f4e0a173f)
This commit is contained in:
@@ -1352,7 +1352,7 @@ namespace Game.DungeonFinding
|
|||||||
uint gDungeonId = GetDungeon(gguid);
|
uint gDungeonId = GetDungeon(gguid);
|
||||||
LFGDungeonData dungeonDone = GetLFGDungeon(gDungeonId);
|
LFGDungeonData dungeonDone = GetLFGDungeon(gDungeonId);
|
||||||
// LFGDungeons can point to a DungeonEncounter from any difficulty so we need this kind of lenient check
|
// 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;
|
return;
|
||||||
|
|
||||||
FinishDungeon(gguid, gDungeonId, currMap);
|
FinishDungeon(gguid, gDungeonId, currMap);
|
||||||
|
|||||||
Reference in New Issue
Block a user