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 Spidertron link tool (Link squads to an entity)
- Added mod option to override the default tool/remote given by shortcut
- 3NOTICE: THIS VERSION IS A WORK IN PROGRESS - CHANGELOG IS NOT FINAL
- 4NOTICE: THIS VERSION IS A WORK IN PROGRESS - CHANGELOG IS NOT FINAL
- Added mod option to disable player alerts
- _NOTE: BETA RELEASE - USE AT YOUR OWN RISK!

View File

@ -42,8 +42,10 @@ end
local function unitNumbers(entities)
local ids = {}
for i = 1, #entities do
if entities[i].valid then
ids[#ids+1] = entities[i].unit_number
end
end
return ids
end