Skip to content

Commit

Permalink
Apply suggestions from automated code review
Browse files Browse the repository at this point in the history
local astyle somehow missed those

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
ThePotatomancer and github-actions[bot] authored Sep 2, 2024
1 parent f437598 commit 2cf44ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/magic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2906,10 +2906,10 @@ spell &known_magic::select_spell( Character &guy )

casting_ignore = static_cast<spellcasting_callback *>( 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;
}

Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 2cf44ed

Please sign in to comment.