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