summaryrefslogtreecommitdiff
path: root/src/script/script_scanner.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-04-23 21:16:58 +0000
committerrubidium <rubidium@openttd.org>2014-04-23 21:16:58 +0000
commita5274117bdc323aedc95dbecea6014a308b9a9a0 (patch)
tree65c485894dbc677cfbc5473f549312498435249b /src/script/script_scanner.cpp
parent5b82822c12e014771dceaf9d909e1c0f3653c5a9 (diff)
downloadopenttd-a5274117bdc323aedc95dbecea6014a308b9a9a0.tar.xz
(svn r26487) -Codechange: use lastof instead of lengthof/sizeof for script names
Diffstat (limited to 'src/script/script_scanner.cpp')
-rw-r--r--src/script/script_scanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/script_scanner.cpp b/src/script/script_scanner.cpp
index 578068592..2eb056049 100644
--- a/src/script/script_scanner.cpp
+++ b/src/script/script_scanner.cpp
@@ -110,7 +110,7 @@ void ScriptScanner::Reset()
void ScriptScanner::RegisterScript(ScriptInfo *info)
{
char script_original_name[1024];
- this->GetScriptName(info, script_original_name, sizeof(script_original_name));
+ this->GetScriptName(info, script_original_name, lastof(script_original_name));
strtolower(script_original_name);
char script_name[1024];