Skip to content
Browse files

Fixing a bug where self.ship can be None

  • Loading branch information...
1 parent bedae2d commit 4348aba88dc2013f27774aad991f8672ae01e6a8 @asweigart committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 square-shooter/
2 square-shooter/
@@ -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):
- if not self.ship.has_super_bullets():
+ if self.ship != None and not self.ship.has_super_bullets():
self.bullet = None
# 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.