Fix small but significant oversight
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user