--- ray/src/common/objset.c 1997/12/03 11:14:00 2.5 +++ ray/src/common/objset.c 1998/08/18 17:18:51 2.6 @@ -228,10 +228,10 @@ OCTREE ot; if (!isfull(ot)) goto noderr; - i = oseti(ot); - if ((os = ostable[i%OSTSIZ]) == NULL) + ot = oseti(ot); + if ((os = ostable[ot%OSTSIZ]) == NULL) goto noderr; - for (i /= OSTSIZ; i--; os += *os + 1) + for (i = ot/OSTSIZ; i--; os += *os + 1) if (*os <= 0) goto noderr; for (i = *os; i-- >= 0; ) /* copy set here */