join nested if

This commit is contained in:
Hannes Janetzek
2013-10-09 01:56:01 +02:00
parent 0795470d84
commit 2bc71090b3
+3 -5
View File
@@ -63,11 +63,9 @@ public class GeometryBuffer {
if (CHECK_STATE) if (CHECK_STATE)
setOrCheckMode(2); setOrCheckMode(2);
if (index[0] >= 0){ // start next
// start next if ((index[0] >= 0) && (++indexPos >= index.length))
if (++indexPos >= index.length) ensureIndexSize(indexPos, true);
ensureIndexSize(indexPos, true);
}
// initialize with zero points // initialize with zero points
index[indexPos] = 0; index[indexPos] = 0;