# HG changeset patch # User Neil Muller # Date 1258496567 0 # Node ID d146b7bb9b996d38464a5eba439ea8f84527fe44 # Parent 3294929223bd18bf02298b62b6eeeb658cbcc82e Fix lurking future bug diff -r 3294929223bd -r d146b7bb9b99 gamelib/gameboard.py --- 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):