summaryrefslogtreecommitdiff
path: root/CAO_Game.py
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-04 04:43:08 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-04 04:43:08 +0100
commit830cd3a4733d59935ec7718aa4262d134dc4786a (patch)
tree2c77efcf2f12eff187eb3ca9bb8652173dd61788 /CAO_Game.py
parent027b5f1aceef632a094fd16a3c27106b0644adf5 (diff)
fixed: client considered in game even when refused
the bug happened when we tried to join a full game. the client had game field set to the actual game even though it is not supposed to participate. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'CAO_Game.py')
-rw-r--r--CAO_Game.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/CAO_Game.py b/CAO_Game.py
index 54bbf48..fda7707 100644
--- a/CAO_Game.py
+++ b/CAO_Game.py
@@ -40,6 +40,7 @@ class CAO_Game():
player = CAO_Player(client, cards)
client.set_player(player)
+ client.set_game(self)
self.players.append(player)