birgersp / dcs-gws

Ground Warfare Script for DCS World mission making
24 stars 4 forks source link

TaskGroup: use updateGroupLead in checkPosAdvance #117

Closed birgersp closed 4 years ago

birgersp commented 4 years ago

In TaskGroup.advance, the group lead's position is used. If the group lead is destroyed just before obtaining the position, the script crashes.

To fix, use "updateGroupLead" before obtaining the group lead's position.

https://github.com/birgersp/dcs-autogft/blob/master/autogft/taskgroup.lua#L156