summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/debug.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/debug.cc')
-rw-r--r--crawl-ref/source/debug.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc
index d77c62f2e4..f2bf672f85 100644
--- a/crawl-ref/source/debug.cc
+++ b/crawl-ref/source/debug.cc
@@ -596,11 +596,10 @@ void wizard_create_spec_monster_name()
mpr("Make player ghost which species? (case-sensitive) ", MSGCH_PROMPT);
get_input_line( input_str, sizeof( input_str ) );
- int sp_id = get_species_by_abbrev(input_str);
- if (sp_id == -1)
+ species_type sp_id = get_species_by_abbrev(input_str);
+ if (sp_id == SP_UNKNOWN)
sp_id = str_to_species(input_str);
-
- if (sp_id == -1)
+ if (sp_id == SP_UNKNOWN)
{
mpr("No such species, making it Human.");
sp_id = SP_HUMAN;