stockpiles: handle furniture sand_bags field

develop
Casey Link 2014-11-21 17:42:38 +01:00
parent 98a1278128
commit 12b27e09bb
1 changed files with 5 additions and 0 deletions

@ -1408,6 +1408,11 @@ private:
const StockpileSettings::FurnitureSet furniture = mBuffer.furniture(); const StockpileSettings::FurnitureSet furniture = mBuffer.furniture();
debug() << "furniture:" <<endl; debug() << "furniture:" <<endl;
if (mBuffer.furniture().has_sand_bags())
mPile->settings.furniture.sand_bags = mBuffer.furniture().sand_bags();
else
mPile->settings.furniture.sand_bags = false;
// type // type
if ( furniture.type_size() > 0 ) if ( furniture.type_size() > 0 )
{ {