From 4bfe099433a833073b5261d24c16dcfa0dcc9ae4 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 3 Mar 2025 20:48:52 +0100 Subject: [PATCH] rogueviz::seuphorica:: fixed board-to-hand move --- rogueviz/seuphorica.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rogueviz/seuphorica.cpp b/rogueviz/seuphorica.cpp index 3ade2ef2..dd269bd6 100644 --- a/rogueviz/seuphorica.cpp +++ b/rogueviz/seuphorica.cpp @@ -382,8 +382,9 @@ void seuphorica_screen() { swap(drawn[tile_boxid], drawn[0]); back_to_shop(); } - if(box_moved == &drawn && current_box == &drawn && tile_moved_from == mouseover && hold_mode == 1) { - /* do nothing, it was already removed from the boaud */ + if(box_moved == &drawn && current_box == nullptr && tile_moved_from == mouseover && hold_mode == 1) { + /* do nothing, it was already removed from the board */ + return; } if(box_moved == &drawn && current_box == nullptr) { auto at = from(mouseover);