Skip to content

Commit

Permalink
Merge pull request CleverRaven#76155 from HadeanLake/sort
Browse files Browse the repository at this point in the history
fix Segfault when trying to cast a spell
  • Loading branch information
Maleclypse authored Sep 3, 2024
2 parents 01a0c36 + 3dfd0fd commit ff6de3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/magic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2837,7 +2837,7 @@ int known_magic::select_spell( Character &guy )
return inv_chars.ordinal( l_invlet ) < inv_chars.ordinal( r_invlet );
}
// 3. By spell name
return strcmp( left->name().c_str(), right->name().c_str() );
return strcmp( left->name().c_str(), right->name().c_str() ) < 0;
} );

uilist spell_menu;
Expand Down

0 comments on commit ff6de3f

Please sign in to comment.