Avoid unnecessary calculation

This commit is contained in:
DarkPhoenix
2019-04-19 19:54:21 +03:00
parent 0675ed9a73
commit 7ba1a4c78f

View File

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