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