message: Update savegame loading to account for new resource names
diff: @@ -228,10 +228,10 @@ void MapViewState::readResources(NAS2D::Xml::XmlElement* element, StorableResour
  XmlAttribute* attribute = element->firstAttribute();
  while (attribute)
  {
  - if (attribute->name() == constants::SAVE_GAME_COMMON_METAL) { attribute->queryIntValue(resources.resources[0]); }
  - else if (attribute->name() == constants::SAVE_GAME_COMMON_MINERAL) { attribute->queryIntValue(resources.resources[1]); }
  - else if (attribute->name() == constants::SAVE_GAME_RARE_METAL) { attribute->queryIntValue(resources.resources[2]); }
  - else if (attribute->name() == constants::SAVE_GAME_RARE_MINERAL) { attribute->queryIntValue(resources.resources[3]); }
  + if (attribute->name() == constants::SAVE_GAME_RESOURCE_0) { attribute->queryIntValue(resources.resources[0]); }
  + else if (attribute->name() == constants::SAVE_GAME_RESOURCE_1) { attribute->queryIntValue(resources.resources[1]); }
  + else if (attribute->name() == constants::SAVE_GAME_RESOURCE_2) { attribute->queryIntValue(resources.resources[2]); }
  + else if (attribute->name() == constants::SAVE_GAME_RESOURCE_3) { attribute->queryIntValue(resources.resources[3]); }
  else if (attribute->name() == constants::SAVE_GAME_ENERGY) { attribute->queryIntValue(mEnergy); }
  @@ -406,7 +406,26 @@ void MapViewState::readStructures(Xml::XmlElement* element)
  if (forced_idle != 0) { st->forceIdle(forced_idle != 0); }
  st->production().deserialize(structure->firstChildElement("production"));
  - st->storage().deserialize(structure->firstChildElement("storage"));
  +
  + auto storedElement = structure->firstChildElement("storage");
  +
  + if (storedElement)
  + {
  + StorableResources stored;
  + XmlAttribute* storedAttribute = storedElement->firstAttribute();
  + while (attribute)
  + {
  + if (storedAttribute->name() == constants::SAVE_GAME_RESOURCE_0) { storedAttribute->queryIntValue(stored.resources[0]); }
  + else if (storedAttribute->name() == constants::SAVE_GAME_RESOURCE_1) { storedAttribute->queryIntValue(stored.resources[1]); }
  + else if (storedAttribute->name() == constants::SAVE_GAME_RESOURCE_2) { storedAttribute->queryIntValue(stored.resources[2]); }
  + else if (storedAttribute->name() == constants::SAVE_GAME_RESOURCE_3) { storedAttribute->queryIntValue(stored.resources[3]); }
  +
  + storedAttribute = storedAttribute->next();
  + }
  +
  + st->storage() = stored;
  + }
  +
  if (st->isWarehouse())
  {
  