Fix potential crash in Progressive Mode

This commit is contained in:
Jean-Patrick Guerrero 2021-08-21 13:27:50 +02:00
parent 8a5a14747e
commit 893959b5d4
1 changed files with 1 additions and 1 deletions

View File

@ -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