Skip to content

Commit

Permalink
prevent mod from crashing when privs are granted to players (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 authored Aug 31, 2024
1 parent df0a8ff commit 973ee2c
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 973ee2c

Please sign in to comment.