Disallow fit self-projection

This commit is contained in:
DarkPhoenix
2011-11-19 20:35:24 +04:00
parent b6128f7a61
commit 0ee607664a

View File

@@ -245,6 +245,8 @@ class Fit(object):
def project(self, fitID, thing):
fit = eos.db.getFit(fitID)
if isinstance(thing, eos.types.Fit):
if thing.ID == fitID:
return
fit.projectedFits.append(thing)
elif thing.category.name == "Drone":
drone = None