Fix small but significant oversight

This commit is contained in:
DarkPhoenix
2019-04-11 12:36:41 +03:00
parent 938fa11d13
commit 1b54f07ce0
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ class FitAddImplantCommand(wx.Command):
pyfalog.warning("Invalid item: {0}", self.newItemID)
return False
implant.active = self.newState
self.oldItemID, self.oldState = fit.implants.makeRoom(implant)
fit.implants.append(implant)
self.newIndex = fit.implants.index(implant)

View File

@@ -43,7 +43,7 @@ class FitAddProjectedModuleCommand(wx.Command):
self.oldModuleInfo = ModuleInfoCache(oldPosition, oldItemID, oldState, oldChargeID, oldBaseItemID, oldMutaplasmidID, oldMutations)
if self.newPosition is not None:
fit.projectedModules.append(self.newPosition, mod)
fit.projectedModules.insert(self.newPosition, mod)
else:
fit.projectedModules.append(mod)
self.newPosition = fit.projectedModules.index(mod)