fix: outer continue

This commit is contained in:
cha0s 2024-06-26 07:39:28 -05:00
parent 9151c5b9b3
commit 6de77e5c73

View File

@ -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;