Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgame.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/game.py b/game.py
index 804fe03..cb51a1c 100755
--- a/game.py
+++ b/game.py
@@ -1,6 +1,5 @@
import logging
-from Numeric import *
from gettext import gettext as _
import gtk
@@ -188,7 +187,8 @@ class abstractBoard:
if self.undostack:
pos, color, captures = self.undostack.pop()
del self.status[pos]
- for p in captures: self.status[p] = self.invert(color)
+ if captures:
+ for p in captures: self.status[p] = self.invert(color)
def remove(self, pos):
""" Remove a stone form the board, and store this action in undostack. """