diff options
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index c69350eed8..0e6e1f2d85 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -38,6 +38,7 @@ #include "libutil.h" #include "message.h" #include "mon-util.h" +#include "newgame.h" #include "player.h" #include "religion.h" #include "stash.h" @@ -331,12 +332,7 @@ static char str_to_race( const std::string &str ) if (index == -1) index = get_species_index_by_name( str.c_str() ); - // skip over the extra draconians here - if (index > SP_RED_DRACONIAN) - index -= (SP_CENTAUR - SP_RED_DRACONIAN - 1); - - // SP_HUMAN is at 1, therefore we must subtract one. - return ((index != -1) ? index_to_letter( index - 1 ) : 0); + return ((index != -1) ? index_to_letter( index ) : 0); } static int str_to_class( const std::string &str ) |