diff options
Diffstat (limited to '')
-rw-r--r-- | freecell.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/freecell.c b/freecell.c index bea3662..f6562b8 100644 --- a/freecell.c +++ b/freecell.c @@ -290,6 +290,7 @@ static bool mouseButtonUp(SDL_MouseButtonEvent button) { if (!item) return false; card = item->card; } + if (!gameAvail(card)) return false; for (uint dst = Cell1; dst <= Cell4; ++dst) { if (gameMove(dst, card)) break; } |