3d:: fixed a crashbug

This commit is contained in:
Zeno Rogue 2019-04-30 03:34:38 +02:00
parent 839c369709
commit 8ac431a7f1
1 changed files with 1 additions and 1 deletions

View File

@ -585,7 +585,7 @@ void make_revolution_cut(hpcshape &sh, int each = 180, ld push = 0, ld width = 9
stillin[i] = false;
}
for(int i=n; i>=0; i--) if(!stillin[i] && !stillin[nextid[i]]) nextid[i] = nextid[nextid[i]];
for(int i=n-1; i>=0; i--) if(!stillin[i] && !stillin[nextid[i]]) nextid[i] = nextid[nextid[i]];
for(int i=0; i<n; i++) if(!stillin[i] && !stillin[lastid[i]]) lastid[i] = lastid[lastid[i]];
for(int i=0; i<n; i++) {