summaryrefslogtreecommitdiff
path: root/sfinv_page.lua
diff options
context:
space:
mode:
Diffstat (limited to 'sfinv_page.lua')
-rw-r--r--sfinv_page.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfinv_page.lua b/sfinv_page.lua
index 1155a71..060eb12 100644
--- a/sfinv_page.lua
+++ b/sfinv_page.lua
@@ -11,7 +11,8 @@ local dropdown_values = {}
-- collect skins data
local total_pages = 1
for i, skin in ipairs(skins.list) do
- skin:set_meta("inv_page", math.floor((i-1) / 16)+1)
+ local page = math.floor((i-1) / 16)+1
+ skin:set_meta("inv_page", page)
skin:set_meta("inv_page_index", (i-1)%16+1)
total_pages = page
end