From 893959b5d4a5ca6994e3a6c6c521ba9c5b3c127f Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sat, 21 Aug 2021 13:27:50 +0200 Subject: [PATCH] Fix potential crash in Progressive Mode --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 1877f11..35906af 100644 --- a/init.lua +++ b/init.lua @@ -3046,7 +3046,7 @@ local function save_data(player_name) if not META_SAVES[dat] then _pdata[name][dat] = nil - if player_name then + if player_name and pdata[player_name] then pdata[player_name][dat] = nil -- To free up some memory end end