Fixed a traceback when removing scripts

Ammo switcher was throwing a tizzy because it couldn't find an ID for no ammunition. Legitimate complaint. XD
This commit is contained in:
Corollax
2011-06-10 04:53:59 -05:00
parent 62eda0ac12
commit a8b6ce1bba

View File

@@ -483,7 +483,7 @@ class Fit(object):
return
fit = eos.db.getFit(fitID)
ammo = eos.db.getItem(ammoID)
ammo = eos.db.getItem(ammoID) if ammoID else None
for mod in modules:
if mod.isValidCharge(ammo):