diff --git a/src/overmap_ui.cpp b/src/overmap_ui.cpp index b2db203c26390..080f623661fac 100644 --- a/src/overmap_ui.cpp +++ b/src/overmap_ui.cpp @@ -1195,10 +1195,8 @@ tiles_redraw_info redraw_info; static void draw( overmap_draw_data_t &data ) { + cata_assert( static_cast( data.ui ) ); ui_adaptor *ui = data.ui.get(); - if( ui == nullptr ) { - return; - } draw_om_sidebar( *ui, g->w_omlegend, data.ictxt, data ); #if defined( TILES ) if( use_tiles && use_tiles_overmap ) { diff --git a/src/overmap_ui.h b/src/overmap_ui.h index 5c35ccfa688a5..80bc075a97101 100644 --- a/src/overmap_ui.h +++ b/src/overmap_ui.h @@ -124,7 +124,6 @@ struct overmap_draw_data_t { input_context ictxt; overmap_draw_data_t() { - ui = std::make_shared(); ictxt = input_context( "OVERMAP" ); } };