From 83d7fbfa11973abf823ed07f4c7b39956fc6aa4a Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Sat, 24 Oct 2009 23:48:04 -0700 Subject: mutation.cc: fix compiler warning about 'mdef' being unused in non-DEBUG builds Signed-off-by: Steven Noonan --- crawl-ref/source/mutation.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crawl-ref/source/mutation.cc') diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc index d792aab732..8febaa4403 100644 --- a/crawl-ref/source/mutation.cc +++ b/crawl-ref/source/mutation.cc @@ -2713,9 +2713,7 @@ static mutation_type _demonspawn(FixedVector& muts, int& pow if (mut_to_increase != NUM_MUTATIONS) { - const mutation_def& mdef = mutation_defs[mut_to_increase]; - - ASSERT(muts[mut_to_increase] < mdef.levels); + ASSERT(muts[mut_to_increase] < mutation_defs[mut_to_increase].levels); return mut_to_increase; } -- cgit v1.2.3-54-g00ecf