changeset 400:d146b7bb9b99

Fix lurking future bug
author Neil Muller <drnlmuller@gmail.com>
date Tue, 17 Nov 2009 22:22:47 +0000
parents 3294929223bd
children 7405f7db469f
files gamelib/gameboard.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/gameboard.py	Tue Nov 17 15:43:30 2009 +0000
+++ b/gamelib/gameboard.py	Tue Nov 17 22:22:47 2009 +0000
@@ -811,7 +811,7 @@
                 for x in range(w)] # NB: Assumes z in [0, 4]
         for fox in self.foxes:
             if self.in_bounds(fox.pos):
-                self._fox_pos_cache[pos.x][pos.y][pos.z] = True
+                self._fox_pos_cache[fox.pos.x][fox.pos.y][fox.pos.z] = True
 
     def _update_fox_pos_cache(self, old_pos, new_pos):
         if self.is_fox_at_pos(old_pos):