summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-04-24 18:44:38 +0000
committerrubidium <rubidium@openttd.org>2014-04-24 18:44:38 +0000
commit781dd4894938ad02f83b5697723c4bb3f113b43d (patch)
treef6a3aef3c773a467831284e18870c2aefe76b857 /src
parent66743167c9a661a811467da760f50ca2e06373e9 (diff)
downloadopenttd-781dd4894938ad02f83b5697723c4bb3f113b43d.tar.xz
(svn r26502) -Fix: OSX compilation error
Diffstat (limited to 'src')
-rw-r--r--src/video/cocoa/cocoa_v.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm
index 4a95d1901..cbd7acd07 100644
--- a/src/video/cocoa/cocoa_v.mm
+++ b/src/video/cocoa/cocoa_v.mm
@@ -621,7 +621,7 @@ void cocoaSetApplicationBundleDir()
char tmp[MAXPATHLEN];
CFURLRef url = CFBundleCopyResourcesDirectoryURL(CFBundleGetMainBundle());
if (CFURLGetFileSystemRepresentation(url, true, (unsigned char*)tmp, MAXPATHLEN)) {
- AppendPathSeparator(tmp, lengthof(tmp));
+ AppendPathSeparator(tmp, lastof(tmp));
_searchpaths[SP_APPLICATION_BUNDLE_DIR] = strdup(tmp);
} else {
_searchpaths[SP_APPLICATION_BUNDLE_DIR] = NULL;