All puzzles to have cards without default actions.
[naja.git] / naja / widgets / tile.py
index 8ccb99db2671c5efdde8f0ba1de4dd7926cfdbb7..cf6f04c92d4ef498163dc1f694ff6255fca46af7 100644 (file)
@@ -94,7 +94,7 @@ class TileWidget(Widget):
         self.surface.blit(img, (TILE_SIZE[0] - 20, 0))
 
     def _prepare_lock(self, action, y_offset):
-        if not action.required_bits:
+        if action.required_bits not in BIT_MAP:
             return 4
 
         img_name = BIT_MAP[action.required_bits]