Core/Phasing: Fixed startup crash caused by accessing uninitialized global variable

Port From (https://github.com/TrinityCore/TrinityCore/commit/35ab7dfa8ef5f79af0ee69ed8c19f4be7a635af5)
This commit is contained in:
hondacrx
2024-02-03 11:26:23 -05:00
parent b47ed7401a
commit fdec5064b8
+1 -1
View File
@@ -484,7 +484,7 @@ namespace Game
if (phaseId != 0)
phaseShift.AddPhase(phaseId, GetPhaseFlags(phaseId), null);
else
else if (phaseGroupId != 0)
{
var phasesInGroup = Global.DB2Mgr.GetPhasesForGroup(phaseGroupId);
foreach (uint phaseInGroup in phasesInGroup)