Skip to content

Commit a16413f

Browse files
rubenwardyparamat
authored andcommittedMar 7, 2017
sfinv: Fix wrong tab being highlighted
Thank you to @ForbiddenJ for finding cause of the issue.
1 parent 6d67bad commit a16413f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎mods/sfinv/api.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function sfinv.get_formspec(player, context)
7070
nav[#nav + 1] = pdef.title
7171
nav_ids[#nav_ids + 1] = pdef.name
7272
if pdef.name == context.page then
73-
current_idx = i
73+
current_idx = #nav_ids
7474
end
7575
end
7676
end

0 commit comments

Comments
 (0)
Please sign in to comment.