浏览代码

Mismatched brackets

Unnecessary right bracket, causing game script to fail compiling.
Asheraryam 6 年之前
父节点
当前提交
58a935b57f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/io/saving_games.rst

+ 1 - 1
tutorials/io/saving_games.rst

@@ -195,7 +195,7 @@ load function:
             # Firstly, we need to create the object and add it to the tree and set its position.
             # Firstly, we need to create the object and add it to the tree and set its position.
             var new_object = load(current_line["filename"]).instance()
             var new_object = load(current_line["filename"]).instance()
             get_node(current_line["parent"]).add_child(new_object)
             get_node(current_line["parent"]).add_child(new_object)
-            new_object.position = Vector2(current_line["pos_x"], current_line["pos_y"]))
+            new_object.position = Vector2(current_line["pos_x"], current_line["pos_y"])
             # Now we set the remaining variables.
             # Now we set the remaining variables.
             for i in current_line.keys():
             for i in current_line.keys():
                 if i == "filename" or i == "parent" or i == "pos_x" or i == "pos_y":
                 if i == "filename" or i == "parent" or i == "pos_x" or i == "pos_y":