Browse Source

Merge pull request #877 from InfiniteProductions/loading/serialization-demo-fixed-to-work-with-Godot-4

 loading/serialization demo fixed to work with Godot 4 stable
Aaron Franke 2 years ago
parent
commit
4045f997c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      loading/serialization/save_load_json.gd

+ 1 - 1
loading/serialization/save_load_json.gd

@@ -34,7 +34,7 @@ func save_game():
 			position = var_to_str(enemy.position),
 			position = var_to_str(enemy.position),
 		})
 		})
 
 
-	file.store_line(JSON.new().stringify(save_dict))
+	file.store_line(JSON.stringify(save_dict))
 
 
 	get_node(^"../LoadJSON").disabled = false
 	get_node(^"../LoadJSON").disabled = false