Browse Source

Fix InvalidCastException when loading script metadata

Old value wasn't string so we have to keep that in mind
Ignacio Etcheverry 6 years ago
parent
commit
b0cbf4e2b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/mono/editor/GodotTools/GodotTools/CSharpProject.cs

+ 1 - 1
modules/mono/editor/GodotTools/GodotTools/CSharpProject.cs

@@ -58,7 +58,7 @@ namespace GodotTools
                 {
                     var oldFileDict = (Dictionary) oldFileVar;
 
-                    if (ulong.TryParse((string) oldFileDict["modified_time"], out ulong storedModifiedTime))
+                    if (ulong.TryParse(oldFileDict["modified_time"] as string, out ulong storedModifiedTime))
                     {
                         if (storedModifiedTime == modifiedTime)
                         {