Mercurial > boomslang
changeset 702:9a61cf88e6e8 pyntnclick
Avoid crashing when using the manual
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Wed, 15 Feb 2012 16:49:43 +0200 |
parents | 9c920deb28c2 |
children | cbf6d4573785 |
files | gamelib/scenes/manual.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gamelib/scenes/manual.py Tue Feb 14 17:55:07 2012 +0200 +++ b/gamelib/scenes/manual.py Wed Feb 15 16:49:43 2012 +0200 @@ -11,7 +11,8 @@ "Displays manual pages" def get_page_thing(self): - return self.game.current_detail.things['manual.page'] + # XXX: This is ugly. better ideas? + return self.game.detail_views['manual_detail'].things['manual.page'] def get_page(self): return self.get_page_thing().get_data('page')