Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2013-11-25 22:06:18 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2013-11-25 22:06:18 (GMT)
commit29277fd07d55555a4c2204a97bdbaf798422378a (patch)
tree90d266e60903262c9788e58de2443b7dd5581c4a
parentcae6f8d70eab5ad342291ea4d7eab8d9b6c6e569 (diff)
fix gnome use
-rwxr-xr-xmain.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.py b/main.py
index 85a0356..24b2b41 100755
--- a/main.py
+++ b/main.py
@@ -313,7 +313,8 @@ class Game:
self.current = 'B'
else:
self.current = 'A'
- self.parent.set_current_player(self.current)
+ if self.parent:
+ self.parent.set_current_player(self.current)
pygame.display.flip()