diff options
Diffstat (limited to 'client/Archipelago/manager.gd')
| -rw-r--r-- | client/Archipelago/manager.gd | 6 |
1 files changed, 4 insertions, 2 deletions
| 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(): | |||
| 271 | 271 | ||
| 272 | if FileAccess.file_exists(_localdata_file): | 272 | if FileAccess.file_exists(_localdata_file): |
| 273 | var ap_file = FileAccess.open(_localdata_file, FileAccess.READ) | 273 | var ap_file = FileAccess.open(_localdata_file, FileAccess.READ) |
| 274 | var localdata = ap_file.get_var(true) | 274 | var localdata = [] |
| 275 | ap_file.close() | 275 | if ap_file != null: |
| 276 | localdata = ap_file.get_var(true) | ||
| 277 | ap_file.close() | ||
| 276 | 278 | ||
| 277 | if typeof(localdata) != TYPE_ARRAY: | 279 | if typeof(localdata) != TYPE_ARRAY: |
| 278 | print("AP localdata file is corrupted") | 280 | print("AP localdata file is corrupted") |
