Fixed bug with meta swap context menu for subsystems

This commit is contained in:
blitzmann
2017-07-09 15:08:59 -04:00
parent 78b273455d
commit f8e5e15051

View File

@@ -104,7 +104,9 @@ class MetaSwap(ContextMenu):
group = None
for item in items:
# Apparently no metaGroup for the Tech I variant:
if item.metaGroup is None:
if "subSystem" in item.effects:
thisgroup = item.marketGroup.marketGroupName
elif item.metaGroup is None:
thisgroup = "Tech I"
else:
thisgroup = item.metaGroup.name