Build viewer/editor #13

Manually merged
williamjcm merged 128 commits from mass-viewer into master 2022-03-02 14:50:10 +01:00
Showing only changes of commit 8d87cdd619 - Show all commits

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; weapon_prop->at<ByteProperty>("Type_2_35ABA8C3406F8D9BBF14A89CD6BCE976")->enumValue = weapon.type;
auto parts_prop = weapon_prop->at<ArrayProperty>("Element_6_8E4617CC4B2C1F1490435599784EC6E0"); 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; _state = State::Invalid;
return false; return false;
} }