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 4348aba88dc2013f27774aad991f8672ae01e6a8 1 parent bedae2d
@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
@@ -356,7 +356,7 @@ def handle_collisions(self, delta_t):
for b in self.bubbles:
if self.bullet != None and b.collides_with(self.bullet):
self.bubbles.remove(b)
- if not self.ship.has_super_bullets():
+ if self.ship != None and not self.ship.has_super_bullets():
self.bullet = None
else:
# Push it along or it will just

0 comments on commit 4348aba

Please sign in to comment.
Something went wrong with that request. Please try again.