Fixed a traceback when lighting the torch in the tutorial world.

This commit is contained in:
Griatch 2013-01-29 22:51:18 +01:00
parent 91281e6bb8
commit 7b17c9ad5a

View file

@ -286,7 +286,7 @@ class DarkRoom(TutorialRoom):
type LightSource.
"""
return any([any([True for obj in char.contents
if utils.inherits_from(obj, LightSource) and obj.is_active])
if utils.inherits_from(obj, LightSource) and obj.db.is_active])
for char in self.contents if char.has_player])
def at_object_creation(self):