another small fix

This commit is contained in:
Peter 2020-11-29 13:44:46 +08:00
parent f9d4f4375c
commit 2ec3a88bc7
2 changed files with 5 additions and 3 deletions

View File

@ -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!

View File

@ -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