From bb14c559971e00a8d2bd4c63d6f4fea3c6d3fc8a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 7 Jun 2024 07:54:28 +0200 Subject: [PATCH] fixed a compile error in some compilers --- yendor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yendor.cpp b/yendor.cpp index afd0ac13..9d0c04b6 100644 --- a/yendor.cpp +++ b/yendor.cpp @@ -1450,7 +1450,7 @@ void mode_screen_for_current() { dialog::addBreak(100); dialog::addSelItem(XLAT("scores recorded"), its(qty_scores_for[mc]), 's'); - dialog::add_action([mc] { scores::load(); scores::which_mode = mc; }); + dialog::add_action([] { scores::load(); scores::which_mode = current_modecode; }); dialog::addSelItem(XLAT("Yendor Challenge"), its(yendor::compute_tscore(mc)), 'y'); dialog::add_action([] {