Fixes animal bars but may need to be reworked if other item types were messed up. Also, fix shouldn't break other types.

develop
reverb 2010-10-25 16:15:14 -05:00
parent 48dd2fc424
commit df012b4bae
1 changed files with 6 additions and 0 deletions

@ -476,6 +476,12 @@ std::string Materials::getDescription(t_material & mat)
return "?"; return "?";
else else
{ {
if (mat.itemType == 0) {
if(mat.subIndex<0)
return "any inorganic";
else
return this->inorganic[mat.subIndex].id;
}
if (mat.subIndex>=this->other.size()) if (mat.subIndex>=this->other.size())
{ {
if(mat.subIndex<0) if(mat.subIndex<0)