Fix typo causing defective level scene tree

master
outfrost 2020-05-26 23:19:47 +02:00
parent f832670b8c
commit 84cce77638
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ void initLevel() {
Scene* levelScene = newScene();
for (size_t z = 0; z < levelGrid.depth; ++z) {
for (size_t x = 0; x < levelGrid.depth; ++x) {
for (size_t x = 0; x < levelGrid.width; ++x) {
Scene* blockScene = newScene();
translate(&blockScene->transform, (Vector3D) { .x = x * BLOCKGRID_CELL_SIZE,
.y = 0.0f,