summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/wiz-mon.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-04-24 15:03:45 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-04-26 17:03:16 +0200
commit5f493bf4362078a61db8c6a62e16e1faa9a586fe (patch)
tree42867673f5c01e4c751c63f9a9179976845b5b3f /crawl-ref/source/wiz-mon.cc
parent4d69c10402ccda47deefc8ed3482d9764688dc13 (diff)
downloadcrawl-ref-5f493bf4362078a61db8c6a62e16e1faa9a586fe.tar.gz
crawl-ref-5f493bf4362078a61db8c6a62e16e1faa9a586fe.zip
Fix a monster_type misbuild with clang-3.3.
Again, a magic value of -1. It was also wrongly checked in a few error handling routines, rendering them inoperative even with gcc.
Diffstat (limited to 'crawl-ref/source/wiz-mon.cc')
-rw-r--r--crawl-ref/source/wiz-mon.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/wiz-mon.cc b/crawl-ref/source/wiz-mon.cc
index 1d079aa206..0021b2d1cd 100644
--- a/crawl-ref/source/wiz-mon.cc
+++ b/crawl-ref/source/wiz-mon.cc
@@ -206,7 +206,7 @@ void wizard_create_spec_monster_name()
}
mons_spec mspec = mlist.get_monster(0);
- if (mspec.type == -1)
+ if (mspec.type == MONS_NO_MONSTER)
{
mpr("Such a monster couldn't be found.", MSGCH_DIAGNOSTICS);
return;