From 8ac431a7f1b92396047f55fd0ba2648012d0ef4c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 30 Apr 2019 03:34:38 +0200 Subject: [PATCH] 3d:: fixed a crashbug --- 3d-models.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3d-models.cpp b/3d-models.cpp index e157cd81..15c20f0b 100644 --- a/3d-models.cpp +++ b/3d-models.cpp @@ -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