Skip to content

Commit

Permalink
sfinv: Fix wrong tab being highlighted
Browse files Browse the repository at this point in the history
Thank you to @ForbiddenJ for finding cause of the issue.
  • Loading branch information
rubenwardy authored and paramat committed Mar 7, 2017
1 parent 6d67bad commit a16413f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/sfinv/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function sfinv.get_formspec(player, context)
nav[#nav + 1] = pdef.title
nav_ids[#nav_ids + 1] = pdef.name
if pdef.name == context.page then
current_idx = i
current_idx = #nav_ids
end
end
end
Expand Down

0 comments on commit a16413f

Please sign in to comment.