Change: [Script] Let Script_FatalError use std::string instead of const char *

This commit is contained in:
Rubidium
2021-04-17 09:59:18 +02:00
committed by Michael Lutz
parent 3248a6c12b
commit 4400bbfa96
3 changed files with 8 additions and 8 deletions

View File

@@ -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;