sfinv: Fix wrong tab being highlighted

Thank you to @ForbiddenJ for finding cause of the issue.
master
rubenwardy 2017-03-05 12:37:05 +00:00 committed by paramat
parent 6d67badcac
commit a16413f96c
1 changed files with 1 additions and 1 deletions

View File

@ -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