message: Limit scope of attribute to loop
diff: @@ -263,11 +263,10 @@ void MapViewState::readRobots(Xml::XmlElement* element)
  mRobots.clear();
  ROBOT_ID_COUNTER = 0;
  - XmlAttribute* attribute = nullptr;
  for (XmlNode* robotNode = element->firstChild(); robotNode; robotNode = robotNode->nextSibling())
  {
  int id = 0, type = 0, age = 0, production_time = 0, x = 0, y = 0, depth = 0, direction = 0;
  - attribute = robotNode->toElement()->firstAttribute();
  + auto* attribute = robotNode->toElement()->firstAttribute();
  while (attribute)
  {
  if (attribute->name() == "id") { attribute->queryIntValue(id); }
  