diff --git a/examples/dfitemdump.cpp b/examples/dfitemdump.cpp index da4656a47..27190bc5a 100644 --- a/examples/dfitemdump.cpp +++ b/examples/dfitemdump.cpp @@ -36,7 +36,12 @@ std::string getMatDesc(int32_t typeB, int32_t typeC, int32_t typeD) if(typeC>=Materials->other.size()) return "stuff"; else - return Materials->other[typeC].rawname; + { + if(typeD==-1) + return std::string(Materials->other[typeC].rawname); + else + return std::string(Materials->other[typeC].rawname) + " derivate"; + } } else return Materials->inorganic[typeD].id;