From 424b769ba940ab1a86306c5ed6ddebfd299cc558 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 13 Nov 2019 16:14:00 +0300 Subject: [PATCH] Fix ammo section labels --- service/ammo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/ammo.py b/service/ammo.py index a4d50656f..b7b69924f 100644 --- a/service/ammo.py +++ b/service/ammo.py @@ -81,14 +81,14 @@ class Ammo: currNameBase = ' '.join(charge.name.rsplit()[-2:]) currRange = charge.getAttribute('weaponRangeMultiplier') if sub and (currRange != prevRange or currNameBase != prevNameBase): - all[prevNameBase] = sub + all[sub[0].name] = sub sub = [] sub.append(charge) prevNameBase = currNameBase prevRange = currRange else: if sub: - all[prevNameBase] = sub + all[sub[0].name] = sub return 'ddTurret', all elif mod.hardpoint == FittingHardpoint.MISSILE and mod.item.name != 'Festival Launcher':