Changed 2 mallocs for object transdata to calloc. TransData->flag was

undefined... and somewhere else in code it thought there was a quaternion.

No idea why these mallocs... just asking for troubles!
This commit is contained in:
Ton Roosendaal
2005-05-29 22:12:12 +00:00
parent d73f051bda
commit b1bd69c6f1

View File

@@ -2050,8 +2050,8 @@ static void createTransObject(TransInfo *t)
return;
}
td = t->data = MEM_mallocN(t->total*sizeof(TransData), "TransOb");
tx = t->ext = MEM_mallocN(t->total*sizeof(TransDataExtension), "TransObExtension");
td = t->data = MEM_callocN(t->total*sizeof(TransData), "TransOb");
tx = t->ext = MEM_callocN(t->total*sizeof(TransDataExtension), "TransObExtension");
for(base= FIRSTBASE; base; base= base->next) {
if TESTBASELIB(base) {