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

This commit is contained in:
Erik Vroon
2021-04-25 22:09:25 +02:00
committed by Hugo Locurcio
parent 92e55d4b81
commit c8e3b8417d

View File

@@ -277,7 +277,7 @@ load function:
newObject.Set("Position", new Vector2((float)nodeData["PosX"], (float)nodeData["PosY"]));
// 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();
if (key == "Filename" || key == "Parent" || key == "PosX" || key == "PosY")