diff --git a/source/rendering/StarTilePainter.cpp b/source/rendering/StarTilePainter.cpp index 202d0ac..10edb00 100644 --- a/source/rendering/StarTilePainter.cpp +++ b/source/rendering/StarTilePainter.cpp @@ -232,7 +232,7 @@ shared_ptr TilePainter::getTerrainChunk(WorldRe for (auto& layerPair : terrainPrimitives) { for (auto& zLevelPair : layerPair.second) { auto rb = m_renderer->createRenderBuffer(); - rb->set(LevelPair.second); + rb->set(zLevelPair.second); (*chunk)[layerPair.first][zLevelPair.first] = move(rb); } }