diff --git a/changelog.txt b/changelog.txt index 4c5c395..101f02a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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! diff --git a/control/player_select.lua b/control/player_select.lua index 2e09f68..60bc622 100644 --- a/control/player_select.lua +++ b/control/player_select.lua @@ -42,7 +42,9 @@ end local function unitNumbers(entities) local ids = {} 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 return ids end