summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/godabil.cc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-11-23 20:52:10 -0500
committerCharles Otto <ottochar@gmail.com>2009-11-23 20:52:10 -0500
commit09553219c78aced327ee59e815ed239c236de59c (patch)
tree6df87c864845f66795a2cca2e8c025dae2ffb33a /crawl-ref/source/godabil.cc
parentf2bb7ce8d322ae249bff9cea8a5df8180e23f18e (diff)
downloadcrawl-ref-09553219c78aced327ee59e815ed239c236de59c.tar.gz
crawl-ref-09553219c78aced327ee59e815ed239c236de59c.zip
Fix a crash in Fedhas's retribution
Fix an overrun caused by incrementing the wrong variable in a loop.
Diffstat (limited to 'crawl-ref/source/godabil.cc')
-rw-r--r--crawl-ref/source/godabil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/godabil.cc b/crawl-ref/source/godabil.cc
index 21b325b0bb..fc65c7b4b5 100644
--- a/crawl-ref/source/godabil.cc
+++ b/crawl-ref/source/godabil.cc
@@ -696,7 +696,7 @@ static void _point_point_distance(std::vector<coord_def> & origins,
{
// The minimum of current_distances is points(i)
int min_dist = current_distances[0];
- for (unsigned j = 1; i < current_distances.size(); ++i)
+ for (unsigned j = 1; j < current_distances.size(); ++j)
if (current_distances[j] < min_dist)
min_dist = current_distances[j];