diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-05-29 10:00:44 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-05-29 10:00:44 +0200 |
commit | fcbe9658595c2dbc4bafc2d5eb78da985d0950f1 (patch) | |
tree | f581d610406bd05f5d4450464240ca9c430f23fe /crawl-ref/source/species.cc | |
parent | af454e13cef95e7d8868c81d0a371d422fceead6 (diff) | |
download | crawl-ref-fcbe9658595c2dbc4bafc2d5eb78da985d0950f1.tar.gz crawl-ref-fcbe9658595c2dbc4bafc2d5eb78da985d0950f1.zip |
Don't let is_valid_species() accept placeholders.
Diffstat (limited to 'crawl-ref/source/species.cc')
-rw-r--r-- | crawl-ref/source/species.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/species.cc b/crawl-ref/source/species.cc index 4e1667065f..94c4cf4e5d 100644 --- a/crawl-ref/source/species.cc +++ b/crawl-ref/source/species.cc @@ -361,7 +361,7 @@ monster_type player_species_to_mons_species(species_type species) bool is_valid_species(species_type species) { - return (species >= 0 && species < NUM_SPECIES); + return (species >= 0 && species <= LAST_VALID_SPECIES); } int species_exp_modifier(species_type species) |