fix debug portal lines to the highest ID particle not working, fixes #393

This commit is contained in:
jacob1
2017-04-08 09:54:45 -04:00
parent bda17dd62e
commit 1af4fa912f

View File

@@ -2003,7 +2003,7 @@ void Renderer::render_parts()
type = PT_PRTO; type = PT_PRTO;
else if (type == PT_PRTO) else if (type == PT_PRTO)
type = PT_PRTI; 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) if (parts[z].type == type)
{ {