From d9f6470dc6699621f881f6ab1b69c1e859665543 Mon Sep 17 00:00:00 2001 From: William JCM Date: Sun, 13 Mar 2022 11:02:43 +0100 Subject: [PATCH] Mass: make the code look in the right places. Time to facepalm... --- src/Mass/Mass_Armour.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mass/Mass_Armour.cpp b/src/Mass/Mass_Armour.cpp index 94a2d74..5d72eca 100644 --- a/src/Mass/Mass_Armour.cpp +++ b/src/Mass/Mass_Armour.cpp @@ -178,8 +178,8 @@ void Mass::getBulletLauncherAttachments() { return; } - auto attach_style_prop = _mass->at("WeaponBLAttachmentStyle_65_5943FCE8406F18D2C3F69285EB23A699"_s); - auto attach_array = _mass->at("WeaponBLAttachment_61_442D08F547510A4CEE1501BBAF297BA0"_s); + auto attach_style_prop = unit_data->at("WeaponBLAttachmentStyle_65_5943FCE8406F18D2C3F69285EB23A699"_s); + auto attach_array = unit_data->at("WeaponBLAttachment_61_442D08F547510A4CEE1501BBAF297BA0"_s); if(!attach_style_prop && !attach_array) { _armour.blAttachmentStyle = BulletLauncherAttachmentStyle::NotFound;