Skip to content

Commit

Permalink
prevent mod from crashing when privs are granted to players
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 committed Aug 30, 2024
1 parent df0a8ff commit 75558c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 75558c6

Please sign in to comment.