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 bedae2d8525803ef00356dc58f65dcde0e969ae6 1 parent ed966a1
Al Sweigart authored August 09, 2012
2  square-shooter/square-shooter_makeover.py
@@ -324,7 +324,7 @@ def update(self, delta_t):
324 324
                 self.lives += 1
325 325
                 self.init_level(self.level)
326 326
                 return
327  
-        elif not self.ship.has_freeze():
  327
+        elif self.ship != None and not self.ship.has_freeze():
328 328
             # update all the bubbles
329 329
             for bubble in self.bubbles:
330 330
                 bubble.update(delta_t)

0 notes on commit bedae2d

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