summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-04-19 14:42:03 +0000
committeryexo <yexo@openttd.org>2009-04-19 14:42:03 +0000
commit3e2e5b097c9b21884b55275bd474ab5b078d803d (patch)
tree67a594ac5ccc99ce171d9344d055b8ff26874b43 /src/ai/api
parent713da56d9bbd465edea4af3806c2b543d66d4eca (diff)
downloadopenttd-3e2e5b097c9b21884b55275bd474ab5b078d803d.tar.xz
(svn r16091) -Change [FS#2778]: Reverse the order of the lines in the AI debug window
Diffstat (limited to 'src/ai/api')
-rw-r--r--src/ai/api/ai_log.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_log.cpp b/src/ai/api/ai_log.cpp
index 6dc9cb365..8e3714773 100644
--- a/src/ai/api/ai_log.cpp
+++ b/src/ai/api/ai_log.cpp
@@ -32,7 +32,7 @@
log->lines = CallocT<char *>(80);
log->type = CallocT<AILog::AILogType>(80);
log->count = 80;
- log->pos = log->count;
+ log->pos = log->count - 1;
log->used = 0;
}
LogData *log = (LogData *)AIObject::GetLogPointer();