modified dump_image.cpp, line 1100, fixed an indexing bug causing rendering error

This commit is contained in:
lichanghao
2024-11-19 23:50:50 -05:00
parent e6ed911be2
commit 53b2930ef4

View File

@ -1097,7 +1097,7 @@ void DumpImage::create_image()
color = colortype[itype]; color = colortype[itype];
} }
ibonus = body[i]; ibonus = body[j];
n = bptr->image(ibonus,bodyflag1,bodyflag2,bodyvec,bodyarray); n = bptr->image(ibonus,bodyflag1,bodyflag2,bodyvec,bodyarray);
for (k = 0; k < n; k++) { for (k = 0; k < n; k++) {
if (bodyvec[k] == SPHERE) if (bodyvec[k] == SPHERE)