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