fix: changed broke on removed

This commit is contained in:
cha0s 2024-06-27 07:28:46 -05:00
parent 74ec36dfa8
commit 0cb1624cd8

View File

@ -75,6 +75,10 @@ export default class Ecs {
next: () => {
let result = it.next();
hasResult: while (!result.done) {
if (false === result.value[1]) {
result = it.next();
continue;
}
for (const componentName of criteria) {
if (!(componentName in result.value[1])) {
result = it.next();