summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--obj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/obj.c b/obj.c
index 7095e58..403e547 100644
--- a/obj.c
+++ b/obj.c
@@ -19,11 +19,11 @@ static int
triangulate(OBJElem **newe, OBJElem *e)
{
OBJIndexArray *newidxtab;
- OBJIndexArray *idxtab;
+ OBJIndexArray *gidxtab, *idxtab;
int i;
- idxtab = &e->indextab[OBJVGeometric];
- for(i = 0; i < idxtab->nindex-2; i++){
+ gidxtab = &e->indextab[OBJVGeometric];
+ for(i = 0; i < gidxtab->nindex-2; i++){
idxtab = &e->indextab[OBJVGeometric];
newe[i] = emalloc(sizeof **newe);
memset(newe[i], 0, sizeof **newe);