Avoid crash when returning to game during act mode
authorNeil <neil@dip.sun.ac.za>
Wed, 14 May 2014 22:24:12 +0000 (00:24 +0200)
committerNeil <neil@dip.sun.ac.za>
Wed, 14 May 2014 22:24:12 +0000 (00:24 +0200)
naja/widgets/info_area.py

index a89e96533dfee3b7773aeb21c7876bb6e4963c6c..25dd6537361f98aa7b88c0c9894a8694a01b51e1 100644 (file)
@@ -38,6 +38,7 @@ class InfoAreaWidget(Widget):
     def __init__(self, pos, state):
         super(InfoAreaWidget, self).__init__(pos, INFO_SIZE)
         self.state = state
+        self.chosen = None
         self.set_position(state.player.position)
 
     def prepare(self):