summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-25 21:01:38 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-25 21:01:38 +0000
commit71b6b1d375ea617a5ca3057063ea76e97dbfbd8f (patch)
tree903d9e5054416840c24a7a79d6a0efaf86287f8b /crawl-ref/source/spl-book.cc
parent4b16c906a2ed48ff8a4ae682ad2e6c9615d3fe1b (diff)
downloadcrawl-ref-71b6b1d375ea617a5ca3057063ea76e97dbfbd8f.tar.gz
crawl-ref-71b6b1d375ea617a5ca3057063ea76e97dbfbd8f.zip
Apply kotk's minor fixes patch in [2827129], with minor tweaks.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10409 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc
index 6678c51f08..88f2008a38 100644
--- a/crawl-ref/source/spl-book.cc
+++ b/crawl-ref/source/spl-book.cc
@@ -1942,10 +1942,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)