@ -395,18 +395,9 @@ c_creaturetype* Materials_getRaceEx(DFHackObject* mat)
{
c_creaturetype* buf = NULL;
if(alloc_creaturetype_buffer_callback == NULL)
return NULL;
((*alloc_creaturetype_buffer_callback)(&buf, matSize));
CreatureTypeConvert(((DFHack::Materials*)mat)->raceEx, &buf);
if(buf != NULL)
for(int i = 0; i < matSize; i++)
CreatureTypeConvert(&materials->raceEx[i], &(buf[i]));
return buf;
}