Fix coroutines yielding the same value twice
This commit is contained in:
@@ -122,7 +122,10 @@ namespace Upsilon.Evaluator
|
||||
{
|
||||
var current = coroutine.Current;
|
||||
if (current is ScriptType scriptType)
|
||||
{
|
||||
yield return scriptType.ToCSharpObject();
|
||||
continue;
|
||||
}
|
||||
yield return current;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user