changeset 356:a5595de3fe7e

Fix crasher
author Thibaut Girka <thib@sitedethib.com>
date Sun, 08 Jul 2012 00:42:17 +0200
parents b5ab2ad06de8
children 26f78fc7acea
files pytouhou/games/eosd.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/games/eosd.py
+++ b/pytouhou/games/eosd.py
@@ -146,6 +146,8 @@ class EoSDInterface(object):
 
 
     def set_boss_life(self):
+        if not self.game.boss:
+            return
         self.boss_items[1].maximum = self.game.boss._enemy.life or 1
         self.boss_items[2].maximum = self.game.boss._enemy.life or 1