diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-07-08 15:12:04 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-07-08 15:12:04 +0200 |
commit | b0cbf4e2b2f38e3fc349e54bac2facdd2bc13416 (patch) | |
tree | aaae48dabb4da361f28c9358157ba0799a73c1ae /modules/mono | |
parent | 6e9cb44004b8bd30a5834d06671ccd1c62508bfe (diff) |
Fix InvalidCastException when loading script metadata
Old value wasn't string so we have to keep that in mind
Diffstat (limited to 'modules/mono')
-rw-r--r-- | modules/mono/editor/GodotTools/GodotTools/CSharpProject.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools/CSharpProject.cs b/modules/mono/editor/GodotTools/GodotTools/CSharpProject.cs index 0426f0ac5a..3ba311c283 100644 --- a/modules/mono/editor/GodotTools/GodotTools/CSharpProject.cs +++ b/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) { |