From ff79d3db407ca88c14e44a3b6621995e2707450a Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Tue, 15 Nov 2022 15:53:41 -0800 Subject: [PATCH] fix: Fixes NPE from AddStatMod (#1252) --- Projects/Server/Mobiles/Mobile.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Projects/Server/Mobiles/Mobile.cs b/Projects/Server/Mobiles/Mobile.cs index eb3594448..704068f47 100644 --- a/Projects/Server/Mobiles/Mobile.cs +++ b/Projects/Server/Mobiles/Mobile.cs @@ -8469,6 +8469,7 @@ public class Mobile : IHued, IComparable, ISpawnable, IObjectPropertyLis return; } + _statMods ??= new List(); _statMods.Add(mod); Delta(MobileDelta.Stat | GetStatDelta(mod.Type)); CheckStatTimers();