Fix crash

This commit is contained in:
Jean-Patrick Guerrero 2021-03-24 19:28:45 +01:00
parent 9618ea64b7
commit 056d4a3dde

View File

@ -2810,6 +2810,7 @@ end)
core.register_on_dieplayer(function(player)
local name = player:get_player_name()
local data = pdata[name]
if not data then return end
data.bag_size = nil
data.bag:set_list("main", {})