# | Line 124 | Line 124 | OBJREC *o; | |
---|---|---|
124 | ||
125 | i = o->omod; | |
126 | m = findmaterial(objptr(i)); | |
127 | + | if (m == NULL) |
128 | + | return(objptr(i)); |
129 | if (m->otype != MAT_ILLUM || m->oargs.nsargs < 1 || | |
130 | !strcmp(m->oargs.sarg[0], VOIDID) || | |
131 | (i = lastmod(objndx(m), m->oargs.sarg[0])) == OVOID) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |