Skip to content

Commit

Permalink
Select com reapplies if only 1 com (#3537)
Browse files Browse the repository at this point in the history
  • Loading branch information
K0NQUEROR authored Sep 12, 2024
1 parent a3898c2 commit b7fa6f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions luaui/Widgets/cmd_comselect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ local function handleSelectComm(_, _, args)

local unitCount = #units

-- if all comms are already selected, any of them becomes fair game
if unitCount == 0 then
units = teamUnits
unitCount = #units
end

-- If no comms to select, nothing to do
if unitCount < 1 then
return
Expand Down

0 comments on commit b7fa6f3

Please sign in to comment.