From 7b17c9ad5aeb4179c605c6d8e35674044d21a819 Mon Sep 17 00:00:00 2001 From: Griatch Date: Tue, 29 Jan 2013 22:51:18 +0100 Subject: [PATCH] Fixed a traceback when lighting the torch in the tutorial world. --- contrib/tutorial_world/rooms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/tutorial_world/rooms.py b/contrib/tutorial_world/rooms.py index 4e23c4864..841996f7d 100644 --- a/contrib/tutorial_world/rooms.py +++ b/contrib/tutorial_world/rooms.py @@ -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):