From 8ad846ce1ea9e12026512ea81f4baf1309d2b6d8 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 30 Aug 2025 18:35:55 -0400 Subject: [Client] Potentially fixed crash when loading corrupted localdata --- client/Archipelago/manager.gd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/Archipelago/manager.gd') diff --git a/client/Archipelago/manager.gd b/client/Archipelago/manager.gd index 10c4096..60b447a 100644 --- a/client/Archipelago/manager.gd +++ b/client/Archipelago/manager.gd @@ -271,8 +271,10 @@ func _client_connected(): if FileAccess.file_exists(_localdata_file): var ap_file = FileAccess.open(_localdata_file, FileAccess.READ) - var localdata = ap_file.get_var(true) - ap_file.close() + var localdata = [] + if ap_file != null: + localdata = ap_file.get_var(true) + ap_file.close() if typeof(localdata) != TYPE_ARRAY: print("AP localdata file is corrupted") -- cgit 1.4.1