Fix coroutines yielding the same value twice

This commit is contained in:
Deukhoofd committed 2019-02-14 12:38:30 +01:00
1 parent b475bd4495
commit dbf4d8a82e
1 file changed
+3
+3
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;
}
}