Mass: fix a check.
This commit is contained in:
parent
0900f92b9f
commit
8d87cdd619
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue