Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/PathsActivity.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-03-28 13:16:21 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-03-28 13:16:21 (GMT)
commit5c28743aa1fd34e4989770248e8daf45f11c28d6 (patch)
treea67bb7bdf44b022a70eff44b19bfde68b90e58f2 /PathsActivity.py
parent26e5e4a4cebfb6d24000f5a3d483b101ea03678e (diff)
fixed multiplayer turn-taking problem
Diffstat (limited to 'PathsActivity.py')
-rw-r--r--PathsActivity.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/PathsActivity.py b/PathsActivity.py
index 8991f39..ccc6b8a 100644
--- a/PathsActivity.py
+++ b/PathsActivity.py
@@ -469,7 +469,9 @@ state=%d' % (id, initiator, type, service, params, state))
if self.initiating:
# First, remove the piece from whatever hand it was played.
for i in range(COL):
- if self._game.hands[self._game.whos_turn].hand[i].number == \
+ if self._game.hands[self._game.whos_turn].hand[i] is not None \
+ and \
+ self._game.hands[self._game.whos_turn].hand[i].number == \
tile_number:
self._game.hands[self._game.whos_turn].hand[i] = None
break