Skip to content

Commit

Permalink
fix note list not updating when danger mark is removed (CleverRaven#7…
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon authored Feb 11, 2024
1 parent 453776d commit e065f1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/overmap_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
Expand Down

0 comments on commit e065f1f

Please sign in to comment.