fix: Fixes NPE from AddStatMod (#1252)
This commit is contained in:
parent
32c15f214b
commit
ff79d3db40
1 changed files with 1 additions and 0 deletions
|
|
@ -8469,6 +8469,7 @@ public class Mobile : IHued, IComparable<Mobile>, ISpawnable, IObjectPropertyLis
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_statMods ??= new List<StatMod>();
|
||||||
_statMods.Add(mod);
|
_statMods.Add(mod);
|
||||||
Delta(MobileDelta.Stat | GetStatDelta(mod.Type));
|
Delta(MobileDelta.Stat | GetStatDelta(mod.Type));
|
||||||
CheckStatTimers();
|
CheckStatTimers();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue