|
|
|
@ -1871,15 +1871,19 @@ void StockpileSerializer::read_gems(DeserializeMode mode, const vector<string>&
|
|
|
|
|
return;
|
|
|
|
|
} else {
|
|
|
|
|
MaterialInfo mi;
|
|
|
|
|
for (size_t i = 0; i < builtin_size; ++i) {
|
|
|
|
|
for (int i = 0; i < (int)builtin_size; ++i) {
|
|
|
|
|
if (i < bgems.rough_other_mats_size()) {
|
|
|
|
|
string id = bgems.rough_other_mats(i);
|
|
|
|
|
if (mi.find(id) && mi.isValid() && size_t(mi.type) < builtin_size)
|
|
|
|
|
set_filter_elem("other/rough", filters, val, id, mi.type, pgems.rough_other_mats.at(mi.type));
|
|
|
|
|
id = bgems.cut_other_mats(i);
|
|
|
|
|
}
|
|
|
|
|
if (i < bgems.cut_other_mats_size()) {
|
|
|
|
|
string id = bgems.cut_other_mats(i);
|
|
|
|
|
if (mi.find(id) && mi.isValid() && size_t(mi.type) < builtin_size)
|
|
|
|
|
set_filter_elem("other/cut", filters, val, id, mi.type, pgems.cut_other_mats.at(mi.type));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|