diff --git a/plugins/remotefortressreader/item_reader.cpp b/plugins/remotefortressreader/item_reader.cpp index 8fcb7a601..59b1f36e7 100644 --- a/plugins/remotefortressreader/item_reader.cpp +++ b/plugins/remotefortressreader/item_reader.cpp @@ -99,6 +99,13 @@ void CopyImage(const df::art_image * image, ArtImage * netImage) it->set_mat_type(item->item_type); it->set_mat_index(item->item_subtype); netElement->set_id(item->item_id); + switch (item->item_type) + { + case item_type::PLANT: + it->set_mat_index(item->mat_index); + default: + break; + } auto mat = netElement->mutable_material(); mat->set_mat_type(item->mat_type); mat->set_mat_index(item->mat_index);