don't render invalid elements
This commit is contained in:
parent
4d207b1146
commit
d0b14dc64b
@ -1104,7 +1104,7 @@ void Renderer::render_parts()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
for(i = 0; i<=sim->parts_lastActiveIndex; i++) {
|
for(i = 0; i<=sim->parts_lastActiveIndex; i++) {
|
||||||
if (sim->parts[i].type) {
|
if (sim->parts[i].type && sim->parts[i].type >= 0 && sim->parts[i].type < PT_NUM) {
|
||||||
t = sim->parts[i].type;
|
t = sim->parts[i].type;
|
||||||
|
|
||||||
nx = (int)(sim->parts[i].x+0.5f);
|
nx = (int)(sim->parts[i].x+0.5f);
|
||||||
|
Reference in New Issue
Block a user