Skip to content

Commit

Permalink
Update SaveManager.gd
Browse files Browse the repository at this point in the history
  • Loading branch information
myin142 committed Aug 14, 2023
1 parent 146863c commit b48a29d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions godot/addons/save-system/SaveManager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ func load_from_slot(slot: int):
var file = FileAccess.open(file_name, FileAccess.READ)
var data
if file == null:
logger.error("Failed to load data from %s: %s" % [file_name, file.get_open_error()])
logger.error("Failed to load data from %s" % [file_name])
else:
data = file.get_var()
if data:
logger.debug("Load %s" % str(data))
file.close()
file.close()

return data

Expand Down

0 comments on commit b48a29d

Please sign in to comment.