Fixed a filename typo in script

Script was operating on 2 different filenames and would not work.
This commit is contained in:
Brickcaster
2016-06-04 13:01:46 -04:00
parent 9fc36576b6
commit 39e2eea251
+1 -1
View File
@@ -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.