diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-04-24 15:03:45 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-04-26 17:03:16 +0200 |
commit | 5f493bf4362078a61db8c6a62e16e1faa9a586fe (patch) | |
tree | 42867673f5c01e4c751c63f9a9179976845b5b3f /crawl-ref/source/wiz-item.cc | |
parent | 4d69c10402ccda47deefc8ed3482d9764688dc13 (diff) | |
download | crawl-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-item.cc')
-rw-r--r-- | crawl-ref/source/wiz-item.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/wiz-item.cc b/crawl-ref/source/wiz-item.cc index 2301b323e9..7d6b2d304f 100644 --- a/crawl-ref/source/wiz-item.cc +++ b/crawl-ref/source/wiz-item.cc @@ -185,7 +185,7 @@ void wizard_create_spec_object() dummy.number = prompt_for_int("How many heads? ", false); if (fill_out_corpse(&dummy, dummy.type, - mitm[thing_created], true) == -1) + mitm[thing_created], true) == MONS_NO_MONSTER) { mpr("Failed to create corpse."); mitm[thing_created].clear(); |