From 26e7da694c06b16e51c76c9a804c72bcf3cc8360 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 9 Nov 2007 16:20:05 +0000 Subject: [1828918] Fixed shadow creatures producing permanent summons. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2832 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monplace.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'crawl-ref') diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc index 0144a77bcf..0f037be8f6 100644 --- a/crawl-ref/source/monplace.cc +++ b/crawl-ref/source/monplace.cc @@ -645,10 +645,11 @@ bool place_monster(int &id, int mon_type, int power, beh_type behaviour, // (5) for each band monster, loop call to place_monster_aux(). for(i = 1; i < band_size; i++) { - id = place_monster_aux( band_monsters[i], behaviour, target, px, py, - lev_mons, extra, false, dur); - if (id != -1 && id != NON_MONSTER) - menv[id].flags |= MF_BAND_MEMBER; + const int band_id = + place_monster_aux( band_monsters[i], behaviour, target, px, py, + lev_mons, extra, false, dur); + if (band_id != -1 && band_id != NON_MONSTER) + menv[band_id].flags |= MF_BAND_MEMBER; } // placement of first monster, at least, was a success. -- cgit v1.2.3-54-g00ecf