message: Update savegame loading to read waste accumulation values from residences
diff: @@ -410,6 +410,21 @@ void MapViewState::readStructures(Xml::XmlElement* element)
  loadResorucesFromXmlElement(structureNode->firstChildElement("production"), structure.production());
  loadResorucesFromXmlElement(structureNode->firstChildElement("storage"), structure.storage());
  + if (structure.structureClass() == Structure::StructureClass::Residence)
  + {
  + auto waste = structureNode->firstChildElement("waste");
  + if (waste)
  + {
  + Residence* residence = static_cast<Residence*>(&structure);
  + auto accumulated = waste->attribute("accumulated");
  + residence->wasteAccumulated(std::stoi(accumulated));
  +
  + auto overflow = waste->attribute("overflow");
  + residence->wasteOverflow(std::stoi(overflow));
  + }
  +
  + }
  +
  if (structure.isWarehouse())
  {
  auto& warehouse = *static_cast<Warehouse*>(&structure);
  