From 71b6b1d375ea617a5ca3057063ea76e97dbfbd8f Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 25 Jul 2009 21:01:38 +0000 Subject: 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 --- crawl-ref/source/spl-book.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/spl-book.cc') 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) -- cgit v1.2.3-54-g00ecf