Mass: fix a bug when writing armour parts.

This commit is contained in:
Guillaume Jacquemin 2022-04-08 12:44:30 +02:00
parent 71d38f4a91
commit 32a1a6d014
1 changed files with 4 additions and 1 deletions

View File

@ -130,7 +130,10 @@ auto Mass::writeArmourPart(ArmourSlot slot) -> bool {
for(UnsignedInt i = 0; i < armour_array->items.size(); i++) {
part_prop = armour_array->at<GenericStructProperty>(i);
if(slot_str != part_prop->at<StringProperty>("Slot_3_408BA56F4C9605C7E805CF91B642249C"_s)->value) {
if(slot_str == part_prop->at<ByteProperty>("Slot_3_408BA56F4C9605C7E805CF91B642249C"_s)->enumValue) {
break;
}
else {
part_prop = nullptr;
}
}