From df012b4bae5ae13092e46c0c00ccf6475276776e Mon Sep 17 00:00:00 2001 From: reverb Date: Mon, 25 Oct 2010 16:15:14 -0500 Subject: [PATCH] Fixes animal bars but may need to be reworked if other item types were messed up. Also, fix shouldn't break other types. --- library/modules/Materials.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/modules/Materials.cpp b/library/modules/Materials.cpp index 343fa99c0..b1a8afcb9 100644 --- a/library/modules/Materials.cpp +++ b/library/modules/Materials.cpp @@ -476,6 +476,12 @@ std::string Materials::getDescription(t_material & mat) return "?"; 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<0)