Fix potential crash in Progressive Mode
This commit is contained in:
parent
8a5a14747e
commit
893959b5d4
2
init.lua
2
init.lua
|
@ -3046,7 +3046,7 @@ local function save_data(player_name)
|
||||||
if not META_SAVES[dat] then
|
if not META_SAVES[dat] then
|
||||||
_pdata[name][dat] = nil
|
_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
|
pdata[player_name][dat] = nil -- To free up some memory
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Ŝarĝante…
Reference in New Issue