# HG changeset patch # User Thibaut Girka # Date 1341700937 -7200 # Node ID a5595de3fe7e11832f65b2b1ce8cf9dd7afae19d # Parent b5ab2ad06de8879d0ba23035568f5c3c5b31311c Fix crasher diff --git a/pytouhou/games/eosd.py b/pytouhou/games/eosd.py --- 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