From 2cf44eddcb08e973c8a15b5cf8e61eea6f326ee4 Mon Sep 17 00:00:00 2001 From: ThePotatomancer <52547005+ThePotatomancer@users.noreply.github.com> Date: Mon, 2 Sep 2024 15:50:25 +0300 Subject: [PATCH] Apply suggestions from automated code review local astyle somehow missed those Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/magic.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/magic.cpp b/src/magic.cpp index bc375420ccf18..0700660486ece 100644 --- a/src/magic.cpp +++ b/src/magic.cpp @@ -2906,10 +2906,10 @@ spell &known_magic::select_spell( Character &guy ) casting_ignore = static_cast( spell_menu.callback )->casting_ignore; if( spell_menu.ret < 0 ) { - static spell null_spell_reference(spell_id::NULL_ID()); + static spell null_spell_reference( spell_id::NULL_ID() ); return null_spell_reference; } - spell* selected_spell = known_spells_sorted[spell_menu.ret]; + spell *selected_spell = known_spells_sorted[spell_menu.ret]; return *selected_spell; } @@ -2967,7 +2967,6 @@ static std::string color_number( const float num ) return colorize( "0", c_white ); } } - static void draw_spellbook_info( const spell_type &sp ) { const spell fake_spell( sp.id );