Fix lantern problem.

This commit is contained in:
aignacio_sf 2006-11-15 01:14:17 +00:00
parent 5dc3848745
commit e5ecbbfc16
1 changed files with 3 additions and 2 deletions

View File

@ -2466,8 +2466,9 @@ def superFlattenShip(ship):
from pirates.shipparts.DistributedShipDecor import DistributedShipDecor
for DO in base.cr.doId2do.values():
if(type(DO) == DistributedShipDecor):
DO.prop.lanternGlowEffect.destroy()
if (hasattr(DO.prop, 'lanternGlowEffect')):
DO.prop.lanternGlowEffect.destroy()
#PHASE 5: flatten strong!
return ship.flattenStrong()