Browse Source

Fix entry type in C# example for loading savegames (#4850)

Erik Vroon 4 years ago
parent
commit
c8e3b8417d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorials/io/saving_games.rst

+ 1 - 1
tutorials/io/saving_games.rst

@@ -277,7 +277,7 @@ load function:
             newObject.Set("Position", new Vector2((float)nodeData["PosX"], (float)nodeData["PosY"]));
             newObject.Set("Position", new Vector2((float)nodeData["PosX"], (float)nodeData["PosY"]));
 
 
             // Now we set the remaining variables.
             // Now we set the remaining variables.
-            foreach (KeyValuePair<object, object> entry in nodeData)
+            foreach (KeyValuePair<string, object> entry in nodeData)
             {
             {
                 string key = entry.Key.ToString();
                 string key = entry.Key.ToString();
                 if (key == "Filename" || key == "Parent" || key == "PosX" || key == "PosY")
                 if (key == "Filename" || key == "Parent" || key == "PosX" || key == "PosY")