Skip to content

Commit

Permalink
add nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
clyfordv committed Dec 17, 2024
1 parent 48b034a commit 0ad166e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/ui/game/orders.lua
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,10 @@ local function RetaliateInitFunction(control, unitList)
end

function CycleRetaliateStateUp()
orderCheckboxMap["RULEUCC_RetaliateToggle"]:CycleFireStateUp()
local retaliateCheckbox = orderCheckboxMap["RULEUCC_RetaliateToggle"]
if retaliateCheckbox then
retaliateCheckbox:CycleFireStateUp()
end
end

local function pauseFunc()
Expand Down

0 comments on commit 0ad166e

Please sign in to comment.