[FIXED] CTLD. Memory leak adding zones of the same name and type

[FIXED] CSAR. nil pointer
This commit is contained in:
smiki
2025-10-08 13:15:22 +02:00
parent 5183fcc316
commit 48b51f21de
2 changed files with 57 additions and 6 deletions

View File

@@ -1150,11 +1150,11 @@ function CSAR:_EventHandler(EventData)
local initdcscoord = nil
local initcoord = nil
if _event.id == EVENTS.Ejection then
if _event.id == EVENTS.Ejection and _event.TgtDCSUnit then
initdcscoord = _event.TgtDCSUnit:getPoint()
initcoord = COORDINATE:NewFromVec3(initdcscoord)
self:T({initdcscoord})
else
elseif _event.IniDCSUnit then
initdcscoord = _event.IniDCSUnit:getPoint()
initcoord = COORDINATE:NewFromVec3(initdcscoord)
self:T({initdcscoord})