mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
SET - fix for dead units
This commit is contained in:
parent
3c5f3d6c37
commit
562a3f6208
@ -1128,7 +1128,9 @@ do -- SET_GROUP
|
|||||||
local NearestGroup = nil -- Wrapper.Group#GROUP
|
local NearestGroup = nil -- Wrapper.Group#GROUP
|
||||||
local ClosestDistance = nil
|
local ClosestDistance = nil
|
||||||
|
|
||||||
for ObjectID, ObjectData in pairs( self.Set ) do
|
local Set = self:GetAliveSet()
|
||||||
|
|
||||||
|
for ObjectID, ObjectData in pairs( Set ) do
|
||||||
if NearestGroup == nil then
|
if NearestGroup == nil then
|
||||||
NearestGroup = ObjectData
|
NearestGroup = ObjectData
|
||||||
ClosestDistance = PointVec2:DistanceFromPointVec2( ObjectData:GetCoordinate() )
|
ClosestDistance = PointVec2:DistanceFromPointVec2( ObjectData:GetCoordinate() )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user