From fdec5064b80a949f50426fc8b93e380033a52e78 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 3 Feb 2024 11:26:23 -0500 Subject: [PATCH] Core/Phasing: Fixed startup crash caused by accessing uninitialized global variable Port From (https://github.com/TrinityCore/TrinityCore/commit/35ab7dfa8ef5f79af0ee69ed8c19f4be7a635af5) --- Source/Game/Phasing/PhasingHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Phasing/PhasingHandler.cs b/Source/Game/Phasing/PhasingHandler.cs index f89950db6..a17ea6d87 100644 --- a/Source/Game/Phasing/PhasingHandler.cs +++ b/Source/Game/Phasing/PhasingHandler.cs @@ -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)