From 39e2eea251d77c621cc8d7ebfe0fc3ab11324867 Mon Sep 17 00:00:00 2001 From: Brickcaster Date: Sat, 4 Jun 2016 13:01:46 -0400 Subject: [PATCH] Fixed a filename typo in script Script was operating on 2 different filenames and would not work. --- tutorials/engine/saving_games.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/engine/saving_games.rst b/tutorials/engine/saving_games.rst index d3ff72bf4..930a9f0cb 100644 --- a/tutorials/engine/saving_games.rst +++ b/tutorials/engine/saving_games.rst @@ -121,7 +121,7 @@ load function: # Load the file line by line and process that dictionary to restore the object it represents var currentline = {} # dict.parse_json() requires a declared dict. - savegame.open("user://Invasionsave.save", File.READ) + savegame.open("user://savegame.save", File.READ) while (!savegame.eof_reached()): currentline.parse_json(savegame.get_line()) # First we need to create the object and add it to the tree and set its position.