summaryrefslogtreecommitdiff
path: root/src/script/script_scanner.cpp
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-04-17 09:59:18 +0200
committerMichael Lutz <michi@icosahedron.de>2021-04-17 22:24:52 +0200
commit4400bbfa964dd6353f0cf7591f6be6a789039399 (patch)
treef0b6c699b81c8fa81b0f95948774cea832c12a28 /src/script/script_scanner.cpp
parent3248a6c12b27801d44fbb67b405d204d10672c9f (diff)
downloadopenttd-4400bbfa964dd6353f0cf7591f6be6a789039399.tar.xz
Change: [Script] Let Script_FatalError use std::string instead of const char *
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 6fa88bfee..8b48809bf 100644
--- a/src/script/script_scanner.cpp
+++ b/src/script/script_scanner.cpp
@@ -38,7 +38,7 @@ bool ScriptScanner::AddFile(const std::string &filename, size_t basepath_length,
try {
this->engine->LoadScript(filename.c_str());
} catch (Script_FatalError &e) {
- DEBUG(script, 0, "Fatal error '%s' when trying to load the script '%s'.", e.GetErrorMessage(), filename.c_str());
+ DEBUG(script, 0, "Fatal error '%s' when trying to load the script '%s'.", e.GetErrorMessage().c_str(), filename.c_str());
return false;
}
return true;