From 09553219c78aced327ee59e815ed239c236de59c Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Mon, 23 Nov 2009 20:52:10 -0500 Subject: Fix a crash in Fedhas's retribution Fix an overrun caused by incrementing the wrong variable in a loop. --- crawl-ref/source/godabil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/godabil.cc') 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 & 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]; -- cgit v1.2.3-54-g00ecf