Fix InvalidCastException when loading script metadata

Old value wasn't string so we have to keep that in mind
This commit is contained in:
Ignacio Etcheverry 2019-07-08 15:12:04 +02:00
parent 6e9cb44004
commit b0cbf4e2b2

View file

@ -58,7 +58,7 @@ namespace GodotTools
{ {
var oldFileDict = (Dictionary) oldFileVar; 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) if (storedModifiedTime == modifiedTime)
{ {