diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-09 16:20:05 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-09 16:20:05 +0000 |
commit | 26e7da694c06b16e51c76c9a804c72bcf3cc8360 (patch) | |
tree | c9e13e994b446c4d4132a910107da5f368503807 /crawl-ref/source/monplace.cc | |
parent | 85aad345f2186635f5415dba9ccbf1570dd41d53 (diff) | |
download | crawl-ref-26e7da694c06b16e51c76c9a804c72bcf3cc8360.tar.gz crawl-ref-26e7da694c06b16e51c76c9a804c72bcf3cc8360.zip |
[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
Diffstat (limited to 'crawl-ref/source/monplace.cc')
-rw-r--r-- | crawl-ref/source/monplace.cc | 9 |
1 files changed, 5 insertions, 4 deletions
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. |