Mass: improve readability.

This commit is contained in:
Guillaume Jacquemin 2021-10-17 08:44:23 +02:00
parent 80bb85c0d8
commit 7e452db3a4

View file

@ -1055,9 +1055,9 @@ void Mass::getWeaponType(const char* prop_name, Containers::ArrayView<Weapon> we
auto part_accs = part_prop->at<ArrayProperty>("Accessories_21_3878DE8B4ED0EA0DB725E98BCDC20E0C"); auto part_accs = part_prop->at<ArrayProperty>("Accessories_21_3878DE8B4ED0EA0DB725E98BCDC20E0C");
if(!part_accs) { if(!part_accs) {
_demo = true; _demo = true;
continue;
} }
if(!_demo) {
if(part_accs->items.size() != 8) { if(part_accs->items.size() != 8) {
_state = State::Invalid; _state = State::Invalid;
return; return;
@ -1088,4 +1088,3 @@ void Mass::getWeaponType(const char* prop_name, Containers::ArrayView<Weapon> we
} }
} }
} }
}