From 973ee2c39bc9a5f9d4aa14658a18cca918808ed5 Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Fri, 30 Aug 2024 21:50:00 -0400 Subject: [PATCH] prevent mod from crashing when privs are granted to players (#18) --- src/common.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.lua b/src/common.lua index f8d0a86..3605ad0 100644 --- a/src/common.lua +++ b/src/common.lua @@ -614,7 +614,7 @@ local function reset_data(data) data.show_setting = "home" data.items = data.items_raw - if data.itab > 1 then + if data.itab and data.itab > 1 then sort_by_category(data) end end