Add property to get at board_locations
[naja.git] / naja / widgets / tile.py
index cba4658e147b59558cba4e28709b9e0e77a359e2..63fbafef09f054666a42234929a1145ad524bf53 100644 (file)
@@ -28,7 +28,7 @@ class TileWidget(Widget):
                           True, [(1, 1), (1, 95), (95, 95), (95, 1)], 2)
         self.surface.convert_alpha(pygame.display.get_surface())
         # Look up the required bits on the board location
-        card = self.state.gameboard.board_locations[self.board_pos]
+        card = self.state.board_locations[self.board_pos]
         bits = []
         for action in card.actions:
             if action.required_bits: