Mass: fix a check.

This commit is contained in:
Guillaume Jacquemin 2021-10-29 14:41:52 +02:00
parent 0900f92b9f
commit 8d87cdd619

View file

@ -1104,7 +1104,7 @@ auto Mass::writeWeaponType(const char* prop_name, Containers::ArrayView<Weapon>
weapon_prop->at<ByteProperty>("Type_2_35ABA8C3406F8D9BBF14A89CD6BCE976")->enumValue = weapon.type;
auto parts_prop = weapon_prop->at<ArrayProperty>("Element_6_8E4617CC4B2C1F1490435599784EC6E0");
if(parts_prop->items.size() != weapon_array.size()) {
if(parts_prop->items.size() != weapon.parts.size()) {
_state = State::Invalid;
return false;
}