summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-14 15:20:06 +0000
committerrubidium <rubidium@openttd.org>2009-01-14 15:20:06 +0000
commiteb19b0abf94c76cc3e52d74efca399944a84c1b5 (patch)
treedb9afb60f81a1c43df282d4bedad750d6a829c7d /src/ai
parent514cf26325452d187799aad19b8615b79fd7dd97 (diff)
downloadopenttd-eb19b0abf94c76cc3e52d74efca399944a84c1b5.tar.xz
(svn r15082) -Codechange: make the AI library path also a searchdir instead of manually manufacturing it into a searchdir.
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_scanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp
index de2715c9f..2a389fa9d 100644
--- a/src/ai/ai_scanner.cpp
+++ b/src/ai/ai_scanner.cpp
@@ -133,7 +133,7 @@ void AIScanner::ScanAIDir()
FOR_ALL_SEARCHPATHS(sp) {
FioAppendDirectory(buf, MAX_PATH, sp, AI_DIR);
if (FileExists(buf)) this->ScanDir(buf, false);
- ttd_strlcat(buf, "library" PATHSEP, MAX_PATH);
+ FioAppendDirectory(buf, MAX_PATH, sp, AI_LIBRARY_DIR);
if (FileExists(buf)) this->ScanDir(buf, true);
}
}