Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing a bug where self.ship can be None

  • Loading branch information...
commit bedae2d8525803ef00356dc58f65dcde0e969ae6 1 parent ed966a1
@asweigart authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  square-shooter/square-shooter_makeover.py
View
2  square-shooter/square-shooter_makeover.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.