the Materials::ReadDescriptorColors function does return a value now ...

develop
simon 2010-04-22 10:38:26 +02:00
parent 494cc49b51
commit a6c42c6468
1 changed files with 3 additions and 0 deletions

@ -230,6 +230,8 @@ bool Materials::ReadDescriptorColors (vector<t_descriptor_color> & color)
uint32_t size = p_colors.size();
color.clear();
if(size == 0)
return false;
color.reserve(size);
for (uint32_t i = 0; i < size;i++)
{
@ -241,6 +243,7 @@ bool Materials::ReadDescriptorColors (vector<t_descriptor_color> & color)
col.b = p->readFloat( p_colors[i] + p->getDescriptor()->getOffset ("descriptor_color_b") );
color.push_back(col);
}
return true;
}
bool Materials::ReadCreatureTypesEx (vector<t_creaturetype> & creatures)