Closed lukrop closed 8 years ago
Seems to still be a problem. :sob:
oh nice! i was trying to fix it using something like
local function parkDestroy(event) if event.id==18 then if not event.initiator:inAir() then event.initiator:destroy() end end end mist.addEventHandler(parkDestroy)
Still no luck. Somehow the flights might never get tasked with RTB and therefore this if clause never is fullfilled.
Using the new garbage collector this issue should finally be solved. I couldn't reproduce any problems with latest master. I'll leave this open until some further testing is done.
If you kill 1 out of 2 and the surviving aircraft RTB's then it will stay parked, never despawn and the cap will never replenish.
Tested on the provided sample mission at x10 speed, took about 5 minutes until it broke.
Thanks to Pikey for the report.