diff options
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/script_instance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/script_instance.cpp b/src/script/script_instance.cpp index eab85d74b..9cfe05c49 100644 --- a/src/script/script_instance.cpp +++ b/src/script/script_instance.cpp @@ -116,7 +116,7 @@ bool ScriptInstance::LoadCompatibilityScripts(const char *api_version, Subdirect char buf[MAX_PATH]; Searchpath sp; FOR_ALL_SEARCHPATHS(sp) { - FioAppendDirectory(buf, MAX_PATH, sp, dir); + FioAppendDirectory(buf, lastof(buf), sp, dir); strecat(buf, script_name, lastof(buf)); if (!FileExists(buf)) continue; |