# | Line 299 | Line 299 | double x, y, z; | |
---|---|---|
299 | { | |
300 | register int i; | |
301 | ||
302 | < | if (id > nverts) { /* get some more */ |
302 | > | if (id >= nverts) { /* get some more */ |
303 | i = nverts; | |
304 | < | nverts = CHUNKSIZ*((id%CHUNKSIZ)+1); |
304 | > | nverts = CHUNKSIZ*((id/CHUNKSIZ)+1); |
305 | if (vlist == NULL) | |
306 | vlist = (VERTEX *)malloc(nverts*sizeof(VERTEX)); | |
307 | else |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |