Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
Signed-off-by: msfernandes <[email protected]>
  • Loading branch information
msfernandes committed Jun 19, 2015
1 parent 354f7fb commit 9952bd9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/engine/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,11 @@ def __bound_limits(self):

for i in self.target.bullets_used:
if i.position[1] > HEIGHT:
self.target.parent.remove(i)
self.target.bullets_used.remove(i)
try:
self.target.parent.remove(i)
self.target.bullets_used.remove(i)
except:
pass


class AeroliteAction(actions.Move):
Expand Down

0 comments on commit 9952bd9

Please sign in to comment.