summaryrefslogtreecommitdiffstats
path: root/core/math/triangulate.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-09-10 12:21:02 -0300
committerGitHub <noreply@github.com>2016-09-10 12:21:02 -0300
commitfc61eb37ce004ecfa0656a46c68d111c68bb5c19 (patch)
tree0aa31fc3891596abca39042f27404f329e002b2d /core/math/triangulate.cpp
parent026c7913cf6f38b948d66484d97d7841fa1c9f16 (diff)
parenta4674bda47ddeed7cc929bafdcd89b6bd156ee30 (diff)
downloadredot-engine-fc61eb37ce004ecfa0656a46c68d111c68bb5c19.tar.gz
Merge pull request #5920 from 29jm/fix-warnings
Fix some more warnings
Diffstat (limited to 'core/math/triangulate.cpp')
-rw-r--r--core/math/triangulate.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/math/triangulate.cpp b/core/math/triangulate.cpp
index 27b7c86675..1f5d5ed6b3 100644
--- a/core/math/triangulate.cpp
+++ b/core/math/triangulate.cpp
@@ -157,7 +157,10 @@ bool Triangulate::triangulate(const Vector<Vector2> &contour,Vector<int> &result
m++;
/* remove v from remaining polygon */
- for(s=v,t=v+1;t<nv;s++,t++) V[s] = V[t]; nv--;
+ for(s=v,t=v+1;t<nv;s++,t++)
+ V[s] = V[t];
+
+ nv--;
/* resest error detection counter */
count = 2*nv;