fix: changed broke on removed
This commit is contained in:
parent
74ec36dfa8
commit
0cb1624cd8
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user