Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixing a bug where self.ship can be None

  • Loading branch information...
commit 4348aba88dc2013f27774aad991f8672ae01e6a8 1 parent bedae2d
Al Sweigart authored August 09, 2012
2  square-shooter/square-shooter_makeover.py
@@ -356,7 +356,7 @@ def handle_collisions(self, delta_t):
356 356
         for b in self.bubbles:
357 357
             if self.bullet != None and b.collides_with(self.bullet):
358 358
                 self.bubbles.remove(b)
359  
-                if not self.ship.has_super_bullets():
  359
+                if self.ship != None and not self.ship.has_super_bullets():
360 360
                     self.bullet = None
361 361
                 else:
362 362
                     # Push it along or it will just

0 notes on commit 4348aba

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