From 831b5c77e3cbedb040b06cb8868364fea519009c Mon Sep 17 00:00:00 2001 From: Brambor Date: Fri, 3 May 2024 12:47:06 +0200 Subject: [PATCH] fix GCC 9 from #73400 --- src/game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game.cpp b/src/game.cpp index 3b661ec716935..60bb40646521a 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -8598,10 +8598,10 @@ game::vmenu_ret game::list_items( const std::vector &item_list ) col = iter->example->color_in_inventory(); } bool print_new = highlight_unread_items; - const std::string *new_str; + const std::string *new_str = nullptr; // 1 make space between item description and right padding (distance) int new_width = 1; - const nc_color *new_col; + const nc_color *new_col = nullptr; if( print_new ) { switch( check_items_newness( iter->example ) ) { case content_newness::NEW: