mirror of
https://github.com/peter-tanner/spidertron-squad-control.git
synced 2024-11-30 19:10:18 +08:00
another small fix
This commit is contained in:
parent
f9d4f4375c
commit
2ec3a88bc7
|
@ -58,5 +58,5 @@ Date: 2020-11-28
|
||||||
- Added menu/gui to save and load squad configurations
|
- Added menu/gui to save and load squad configurations
|
||||||
- Added Spidertron link tool (Link squads to an entity)
|
- Added Spidertron link tool (Link squads to an entity)
|
||||||
- Added mod option to override the default tool/remote given by shortcut
|
- Added mod option to override the default tool/remote given by shortcut
|
||||||
- 3NOTICE: THIS VERSION IS A WORK IN PROGRESS - CHANGELOG IS NOT FINAL
|
- Added mod option to disable player alerts
|
||||||
- 4NOTICE: THIS VERSION IS A WORK IN PROGRESS - CHANGELOG IS NOT FINAL
|
- _NOTE: BETA RELEASE - USE AT YOUR OWN RISK!
|
||||||
|
|
|
@ -42,7 +42,9 @@ end
|
||||||
local function unitNumbers(entities)
|
local function unitNumbers(entities)
|
||||||
local ids = {}
|
local ids = {}
|
||||||
for i = 1, #entities do
|
for i = 1, #entities do
|
||||||
ids[#ids+1] = entities[i].unit_number
|
if entities[i].valid then
|
||||||
|
ids[#ids+1] = entities[i].unit_number
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return ids
|
return ids
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user