diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-06 15:07:25 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-06 15:07:25 +0000 |
commit | f3e6bbf7bb4202d12fb936d82f69972ad91462e9 (patch) | |
tree | bdf51e4f81e6077b3b681c101b59e2dc83deca43 /crawl-ref/source/dungeon.cc | |
parent | f8258534ed29ace41da92b4713762a2e261b5d4b (diff) | |
download | crawl-ref-f3e6bbf7bb4202d12fb936d82f69972ad91462e9.tar.gz crawl-ref-f3e6bbf7bb4202d12fb936d82f69972ad91462e9.zip |
Hopefully fix debug build, based partially on Josh's patch.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4889 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r-- | crawl-ref/source/dungeon.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index f7a1c55901..dc4e06613a 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -2805,7 +2805,6 @@ static monster_type _pick_unique(int lev) // Return the number of uniques placed. static int _place_uniques(int level_number, char level_type) { - int not_used = 0; // Unique beasties: if (level_number <= 0 || level_type != LEVEL_DUNGEON || !your_branch().has_uniques) @@ -2843,11 +2842,12 @@ static int _place_uniques(int level_number, char level_type) level_number, PROX_ANYWHERE ); mg.map_mask = MMT_NO_MONS; - if (place_monster(mg) != -1) + const int mindex = place_monster(mg); + if (mindex != -1) { #ifdef DEBUG_DIAGNOSTICS mprf(MSGCH_DIAGNOSTICS, "Placed %s", - menv[not_used].name(DESC_NOCAP_A).c_str()); + menv[mindex].name(DESC_NOCAP_A).c_str()); #endif ++num_placed; } |