From 75558c657f9c6e95a90ee5f1cd0d6bb510dd7806 Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Fri, 30 Aug 2024 19:21:59 -0400 Subject: [PATCH] prevent mod from crashing when privs are granted to players --- 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