Fix bug where allocated paths were never returned
This commit is contained in:
@@ -57,7 +57,6 @@ void updatePos(ecs_iter_t *it) {
|
||||
for (i32 i = 0; i < it->count; i++) {
|
||||
Vector2 d = Vector2Subtract(target[i], pos[i]);
|
||||
if (Vector2LengthSqr(d) < 1) {
|
||||
bzLogInfo("Done");
|
||||
ecs_remove(ECS, it->entities[i], TargetPosition);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user