From 3e7da4d5f2132d5dcbaa5cb88f98679cba1e91da Mon Sep 17 00:00:00 2001 From: Japa Date: Tue, 6 Mar 2018 22:37:26 +0530 Subject: [PATCH] FIx wrong material being sent with item flows. --- plugins/remotefortressreader/remotefortressreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/remotefortressreader/remotefortressreader.cpp b/plugins/remotefortressreader/remotefortressreader.cpp index 028a39241..eea2902f0 100644 --- a/plugins/remotefortressreader/remotefortressreader.cpp +++ b/plugins/remotefortressreader/remotefortressreader.cpp @@ -1418,7 +1418,7 @@ void CopyFlow(df::flow_info * localFlow, RemoteFortressReader::FlowInfo * netFlo VIRTUAL_CAST_VAR(cloud, df::flow_guide_item_cloudst, guide); if (cloud) { - mat->set_mat_index(cloud->mattype); + mat->set_mat_index(cloud->matindex); mat->set_mat_type(cloud->mattype); auto item = netFlow->mutable_item(); item->set_mat_index(cloud->item_subtype);