From b0cbf4e2b2f38e3fc349e54bac2facdd2bc13416 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Mon, 8 Jul 2019 15:12:04 +0200 Subject: Fix InvalidCastException when loading script metadata Old value wasn't string so we have to keep that in mind --- modules/mono/editor/GodotTools/GodotTools/CSharpProject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3