From e8d632720f87640daa662e74a7906f984de5d8da Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Thu, 25 Jun 2020 23:35:19 +0200 Subject: Mono/C#: Fix InvalidCast because of attempt to unbox long as int --- modules/mono/editor/GodotTools/GodotTools/BuildTab.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/editor/GodotTools/GodotTools/BuildTab.cs b/modules/mono/editor/GodotTools/GodotTools/BuildTab.cs index 0106e1f1ac..8596cd24af 100644 --- a/modules/mono/editor/GodotTools/GodotTools/BuildTab.cs +++ b/modules/mono/editor/GodotTools/GodotTools/BuildTab.cs @@ -113,7 +113,7 @@ namespace GodotTools throw new IndexOutOfRangeException("Item list index out of range"); // Get correct issue idx from issue list - int issueIndex = (int)issuesList.GetItemMetadata(idx); + int issueIndex = (int)(long)issuesList.GetItemMetadata(idx); if (issueIndex < 0 || issueIndex >= issues.Count) throw new IndexOutOfRangeException("Issue index out of range"); -- cgit v1.2.3