diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-25 21:02:46 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-25 21:02:46 +0000 |
commit | b492473c4686dd26b50c4a5bb7a533ec105e7fde (patch) | |
tree | 232ac84ce7c636631ae0a87e120c5ba226b9cf60 /crawl-ref/source/spl-book.cc | |
parent | d9f0ddab344ee7667c0e1f6dfb63b6af8b30bd5a (diff) | |
download | crawl-ref-b492473c4686dd26b50c4a5bb7a533ec105e7fde.tar.gz crawl-ref-b492473c4686dd26b50c4a5bb7a533ec105e7fde.zip |
Apply trunk r10409 to 0.5.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10410 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r-- | crawl-ref/source/spl-book.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc index 5cf25a4ab1..47a3c9dcdc 100644 --- a/crawl-ref/source/spl-book.cc +++ b/crawl-ref/source/spl-book.cc @@ -1735,10 +1735,10 @@ static bool _compare_spells(spell_type a, spell_type b) b_type = spelltype_name(mask); } ASSERT(a_type != NULL && b_type != NULL); - return (strcmp(a_type, b_type)); + return (strcmp(a_type, b_type) < 0); } - return (strcmp(spell_title(a), spell_title(b))); + return (strcmp(spell_title(a), spell_title(b)) < 0); } bool is_memorised(spell_type spell) |