diff --git a/src/graphics/Renderer.cpp b/src/graphics/Renderer.cpp index d002f3b7f..1d11647af 100644 --- a/src/graphics/Renderer.cpp +++ b/src/graphics/Renderer.cpp @@ -2003,7 +2003,7 @@ void Renderer::render_parts() type = PT_PRTO; else if (type == PT_PRTO) type = PT_PRTI; - for (int z = 0; z < sim->parts_lastActiveIndex; z++) + for (int z = 0; z <= sim->parts_lastActiveIndex; z++) { if (parts[z].type == type) {