From 2ec3a88bc76d64ba46d8507c009c0c66330d5886 Mon Sep 17 00:00:00 2001 From: npc-strider Date: Sun, 29 Nov 2020 13:44:46 +0800 Subject: [PATCH] another small fix --- changelog.txt | 4 ++-- control/player_select.lua | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) 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