small racing game im working on
Diffstat (limited to 'classes/resources/ghost_data.gd')
-rw-r--r--classes/resources/ghost_data.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/resources/ghost_data.gd b/classes/resources/ghost_data.gd
index 1354349..c956aa6 100644
--- a/classes/resources/ghost_data.gd
+++ b/classes/resources/ghost_data.gd
@@ -76,12 +76,12 @@ static func _load_file(path: String) -> Dictionary:
if text:
dict = bytes_to_var(text)
return dict
- _save_file(path, {}) # create file if it doesn't exist
+ GhostData._save_file(path, {}) # create file if it doesn't exist
return {}
## Creates a [GhostData] from a file
static func _load(path: String) -> GhostData:
- var res := _load_file(path)
+ var res := GhostData._load_file(path)
if res.is_empty():
return null
return GhostData.from_d(res)