summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/randart.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-06 05:12:53 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-06 05:12:53 +0000
commit41271ed5d23008b3b70470fe38bc9eb94d921c46 (patch)
treef51806a7b5b6a86240c1146d9a331285d9d3c34e /crawl-ref/source/randart.cc
parent4080747652bef98870bf0848cb2e62eb4151f59d (diff)
downloadcrawl-ref-41271ed5d23008b3b70470fe38bc9eb94d921c46.tar.gz
crawl-ref-41271ed5d23008b3b70470fe38bc9eb94d921c46.zip
[2392486] Fixing infinite loop in map generation. (Stupid comma operator.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7755 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/randart.cc')
-rw-r--r--crawl-ref/source/randart.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc
index d2a00966b9..9ef3270d34 100644
--- a/crawl-ref/source/randart.cc
+++ b/crawl-ref/source/randart.cc
@@ -264,7 +264,7 @@ static std::string _replace_name_parts(const std::string name_in,
{
which_god = static_cast<god_type>(random2(NUM_GODS - 1) + 1);
}
- while (!_god_fits_artefact(which_god, item), true);
+ while (!_god_fits_artefact(which_god, item, true));
}
name = replace_all(name, "@god_name@", god_name(which_god, false));