summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-06-24 23:24:01 +0000
committeryexo <yexo@openttd.org>2009-06-24 23:24:01 +0000
commitcc07a78577f5ade6d34c334a321700017e046bef (patch)
treeb50262525ad642ddc6f9afdde2b70a4068ecfb77 /src/ai
parent2970b72e59f86f69ecdfb6c132a468fff2059323 (diff)
downloadopenttd-cc07a78577f5ade6d34c334a321700017e046bef.tar.xz
(svn r16650) -Fix (r16649): missing ()
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 d84335d48..64008d539 100644
--- a/src/ai/ai_scanner.cpp
+++ b/src/ai/ai_scanner.cpp
@@ -310,7 +310,7 @@ AIInfo *AIScanner::FindInfo(const char *nameParam, int versionParam)
snprintf(ai_name_compare, sizeof(ai_name_compare), "%s", (*it).second->GetName());
strtolower(ai_name_compare);
- if (strcasecmp(ai_name, ai_name_compare) == 0 && (*it).second->CanLoadFromVersion(versionParam) && version == -1 || (*it).second->GetVersion() > version) {
+ if (strcasecmp(ai_name, ai_name_compare) == 0 && (*it).second->CanLoadFromVersion(versionParam) && (version == -1 || (*it).second->GetVersion() > version)) {
version = (*it).second->GetVersion();
info = (*it).second;
}