Fix bug where entity was not removed

This commit is contained in:
2023-11-17 19:02:20 +01:00
parent 16d98a4691
commit 066014cb44

View File

@@ -79,7 +79,7 @@ static void removeCell(BzSpatialGrid *grid, BzSpatialGridID id, i32 x, i32 y) {
BzSpatialGridID **cell = getCell(grid, x, y);
i32 i;
for (i = 0; i < bzArraySize(*cell); i++) {
if (i == (*cell)[i]) {
if (id == (*cell)[i]) {
break;
}
}