join nested if

This commit is contained in:
Hannes Janetzek 2013-04-23 01:07:21 +02:00
parent 0795470d84
commit 2bc71090b3

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;