Mass: fix a condition.

This commit is contained in:
Guillaume Jacquemin 2022-03-13 15:25:11 +01:00
parent d9f6470dc6
commit ddad6536c6

View file

@ -192,8 +192,8 @@ void Mass::getBulletLauncherAttachments() {
return;
}
if(attach_array->items.size() != _weapons.bulletLaunchers.size() &&
attach_array->items.size() != _armour.blAttachment.size())
if(attach_array->items.size() == _weapons.bulletLaunchers.size() &&
attach_array->items.size() == _armour.blAttachment.size())
{
for(UnsignedInt i = 0; i < attach_array->items.size(); i++) {
auto attachment_prop = attach_array->at<GenericStructProperty>(i);