Free used subsystem slot before we add another subsystem if the slot is

in use
This commit is contained in:
cncfanatics
2010-10-28 14:54:04 +02:00
parent 623a3782ce
commit 62241f1040
2 changed files with 5 additions and 1 deletions

2
eos

Submodule eos updated: be10e9956c...5b7f8eaf71

View File

@@ -168,7 +168,11 @@ class Fit(object):
except ValueError:
return False
if m.item.category.name == "Subsystem":
fit.modules.freeSlot(m.getModifiedItemAttr("subSystemSlot"))
if m.fits(fit):
numSlots = len(fit.modules)
fit.modules.append(m)
if m.isValidState(State.ACTIVE):