Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing a bug where self.ship can be None
  • Loading branch information
asweigart committed Aug 9, 2012
1 parent ed966a1 commit bedae2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion square-shooter/square-shooter_makeover.py
Expand Up @@ -324,7 +324,7 @@ def update(self, delta_t):
self.lives += 1
self.init_level(self.level)
return
elif not self.ship.has_freeze():
elif self.ship != None and not self.ship.has_freeze():
# update all the bubbles
for bubble in self.bubbles:
bubble.update(delta_t)
Expand Down

0 comments on commit bedae2d

Please sign in to comment.