summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2020-12-26 13:54:00 +0100
committerCharles Pigott <charlespigott@googlemail.com>2020-12-26 13:32:25 +0000
commit8fa2a67f6b486d4169cdf0a3782782f8e71e04ad (patch)
tree227e21ee3db96690c5524a453d8e71ff81883d8c /src/ai
parentf2d78b11ddc50cea53a8c84e3584319ba5dd0e7b (diff)
downloadopenttd-8fa2a67f6b486d4169cdf0a3782782f8e71e04ad.tar.xz
Fix f66baa44: for-loop is no longer increasing "i"
During conversion it was overlooked that the for-loop used to do this. Oops.
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 23d1e81b7..f1ee03fc1 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -92,6 +92,8 @@ struct AIListWindow : public Window {
this->selected = i;
break;
}
+
+ i++;
}
}
}