Fix for #1714 - was sending in the entire module, not just the position

This commit is contained in:
blitzmann
2018-08-25 19:33:30 -04:00
parent c2b7cc00dd
commit e7d846063d

View File

@@ -38,7 +38,7 @@ class GuiCargoToModuleCommand(wx.Command):
# We're trying to move a charge from cargo to a slot. Use SetCharge command (don't respect move vs copy)
if sFit.isAmmo(cargo.item.ID):
result = self.internal_history.Submit(FitSetChargeCommand(self.fitID, [module], cargo.item.ID))
result = self.internal_history.Submit(FitSetChargeCommand(self.fitID, [module.modPosition], cargo.item.ID))
else:
pyfalog.debug("Moving cargo item to module for fit ID: {0}", self.fitID)