Skip to content

Commit 16ce689

Browse files
committed
Fix possible fallthrough in swap_modlist
1 parent 71c5b15 commit 16ce689

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

gui/mod-manager.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ local function swap_modlist(viewscreen, modlist)
147147
local res = enable_mod(viewscreen, v.id, v.version)
148148
if not res.success then
149149
table.insert(failures, v.id)
150-
end
151-
if res.version then
150+
elseif res.version then
152151
table.insert(changed, { id= v.id, new= res.version })
153152
end
154153
end

0 commit comments

Comments
 (0)