From aecb3259197354bb1c005d43bb9b8f22d5874329 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Tue, 6 Apr 2021 22:54:29 +0200 Subject: [PATCH] Fix crash --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index db44bc1..cbdc8cb 100644 --- a/init.lua +++ b/init.lua @@ -2351,7 +2351,7 @@ local function get_inventory_fs(player, data, fs) local max_val = 15 if __3darmor and data.subcat == 2 then - if data.scrbar_inv >= max_val then + if (data.scrbar_inv or 0) >= max_val then data.scrbar_inv = data.scrbar_inv + 9 end