소스 검색

Mono/C#: Fix InvalidCast because of attempt to unbox long as int

Ignacio Etcheverry 5 년 전
부모
커밋
e8d632720f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/mono/editor/GodotTools/GodotTools/BuildTab.cs

+ 1 - 1
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");