Fix coroutines yielding the same value twice

This commit is contained in:
Deukhoofd 2019-02-14 12:38:30 +01:00
parent b475bd4495
commit dbf4d8a82e
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 3 additions and 0 deletions

View File

@ -122,7 +122,10 @@ namespace Upsilon.Evaluator
{
var current = coroutine.Current;
if (current is ScriptType scriptType)
{
yield return scriptType.ToCSharpObject();
continue;
}
yield return current;
}
}