Avoid using modPosition where possible

This commit is contained in:
DarkPhoenix
2019-04-17 16:14:30 +03:00
parent 400bb10ed3
commit 9fd70a4ba9
6 changed files with 30 additions and 14 deletions

View File

@@ -56,7 +56,7 @@ class GuiCargoToLocalModuleCommand(wx.Command):
commands.append(CalcChangeModuleChargesCommand(
fitID=self.fitID,
projected=False,
chargeMap={dstMod.modPosition: self.srcCargoItemID},
chargeMap={fit.modules.index(dstMod): self.srcCargoItemID},
commit=False))
success = self.internalHistory.submitBatch(*commands)
# Moving/copying/replacing module