Fixes crash with AreaTriggers

This commit is contained in:
Hondacrx
2025-08-27 22:06:57 -04:00
parent bf3ae44c36
commit 869af17b23
3 changed files with 6 additions and 7 deletions
@@ -1555,7 +1555,7 @@ namespace Game.Entities
public override ObjectGuid GetOwnerGUID() { return GetCasterGuid(); }
public ObjectGuid GetCasterGuid() { return m_areaTriggerData.Caster; }
public bool HasSplines() { return !_spline.Empty(); }
public bool HasSplines() { return _spline != null && !_spline.Empty(); }
public Spline<float> GetSpline() { return _spline; }
bool HasOrbit() { return m_areaTriggerData.PathData.Is<AreaTriggerOrbit>(); }