diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-18 13:37:01 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-18 13:37:01 +0000 |
commit | 759ebd29993b7abb1266e630ee1ae7e84509fa9c (patch) | |
tree | 507c0348ab2b6847b91a8b79566a3cd67616d7b2 /crawl-ref/source | |
parent | cce3b76b7af6182333e46cd11829c896eb014b6d (diff) | |
download | crawl-ref-759ebd29993b7abb1266e630ee1ae7e84509fa9c.tar.gz crawl-ref-759ebd29993b7abb1266e630ee1ae7e84509fa9c.zip |
Hopefully repeat my previous changes for trunk:
documentation and index/offset fix.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2135 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/newgame.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc index ce29d9f62c..e4a5f670ba 100644 --- a/crawl-ref/source/newgame.cc +++ b/crawl-ref/source/newgame.cc @@ -2980,7 +2980,7 @@ static job_type letter_to_class(int keyn) static species_type letter_to_species(int keyn) { const int offset = letter_to_index(keyn); - if (index < 0) + if (offset < 0) return (SP_UNKNOWN); int rc; |