diff --git a/luaui/Widgets/gui_transport_weight_limit.lua b/luaui/Widgets/gui_transport_weight_limit.lua index 6761d8622b..770e624cb4 100644 --- a/luaui/Widgets/gui_transport_weight_limit.lua +++ b/luaui/Widgets/gui_transport_weight_limit.lua @@ -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