From e065f1f50449ce4d5775dcbb9e9176a5843d0635 Mon Sep 17 00:00:00 2001 From: Jeremy Rose Date: Sat, 10 Feb 2024 19:04:08 -0800 Subject: [PATCH] fix note list not updating when danger mark is removed (#71640) --- src/overmap_ui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/overmap_ui.cpp b/src/overmap_ui.cpp index 2c5c8d0bc9abf..eefea89b71718 100644 --- a/src/overmap_ui.cpp +++ b/src/overmap_ui.cpp @@ -404,6 +404,8 @@ class map_notes_callback : public uilist_callback if( overmap_buffer.note_danger_radius( note_location() ) >= 0 && query_yn( _( "Remove dangerous mark?" ) ) ) { overmap_buffer.mark_note_dangerous( note_location(), 0, false ); + menu->ret = UILIST_MAP_NOTE_EDITED; + return true; } else { bool has_mark = overmap_buffer.note_danger_radius( note_location() ) >= 0; bool has_note = overmap_buffer.has_note( note_location() );