fix: outer continue
This commit is contained in:
parent
9151c5b9b3
commit
6de77e5c73
|
@ -75,11 +75,11 @@ export default class Ecs {
|
|||
},
|
||||
next: () => {
|
||||
let result = it.next();
|
||||
while (!result.done) {
|
||||
hasResult: while (!result.done) {
|
||||
for (const componentName of criteria) {
|
||||
if (!(componentName in result.value[1])) {
|
||||
result = it.next();
|
||||
continue;
|
||||
continue hasResult;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user