Merge pull request #39837 from neikeq/fix-invalid-unbox-long-as-int

Mono/C#: Fix InvalidCast because of attempt to unbox long as int
This commit is contained in:
Rémi Verschelde 2020-06-26 07:56:42 +02:00 committed by GitHub
commit 87d2397273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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");