Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/WolfireGames/overgrowth.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Source/AI/sample_interfaces.cpp')
-rw-r--r--Source/AI/sample_interfaces.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/AI/sample_interfaces.cpp b/Source/AI/sample_interfaces.cpp
index d42109b8..c7e83dc7 100644
--- a/Source/AI/sample_interfaces.cpp
+++ b/Source/AI/sample_interfaces.cpp
@@ -94,11 +94,11 @@ void BuildContext::dumpLog(const char* format, ...)
if (*msg == '\t')
{
int count = 1;
- for (int j = 0; j < 4; ++j)
+ for (int j : TAB_STOPS)
{
- if (n < TAB_STOPS[j])
+ if (n < j)
{
- count = TAB_STOPS[j] - n;
+ count = j - n;
break;
}
}