Merge pull request #11 from saimen/fix-escape-error

Fix putting card stacks into invalid state
This commit is contained in:
Murilo Pereira 2017-01-07 20:26:09 -02:00 committed by GitHub
commit 08c40b452f

View File

@ -160,7 +160,7 @@ static void handle_card_movement(struct cursor *cursor) {
erase_cursor(cursor); erase_cursor(cursor);
cursor->y--; cursor->y--;
} }
if (marked_cards_count(*origin) > 0) { if (maneuvre_stack(*origin)) {
erase_stack(*origin); erase_stack(*origin);
unmark_cards(*origin); unmark_cards(*origin);
draw_stack(*origin); draw_stack(*origin);