Skip to content

Commit

Permalink
gui_transport_weight_limit: Fix typo later causing lua crash. (beyond…
Browse files Browse the repository at this point in the history
…-all-reason#4081)

Fix typo at gui_transport_weight_limit later causing lua crash.
  • Loading branch information
saurtron authored Dec 26, 2024
1 parent 03b6a18 commit 590c3c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luaui/Widgets/gui_transport_weight_limit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ function widget:SelectionChanged(sel)
elseif selectedUnitsCount > 1 then
for i = 1, #selectedUnits do
local unitID = selectedUnits[i]
local unitdefID = Spring.GetUnitDefID(unitID)
if validTrans[unitdefID] then
local unitDefID = Spring.GetUnitDefID(unitID)
if validTrans[unitDefID] then
transID = unitID
transDefID = unitDefID
unitcount = unitcount + 1
Expand Down

0 comments on commit 590c3c8

Please sign in to comment.