Codechange: use std::string for script names to load

This commit is contained in:
Rubidium
2023-05-04 23:16:09 +02:00
committed by rubidium42
parent 9b0123ab66
commit a30f7c83bd
4 changed files with 9 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ bool ScriptScanner::AddFile(const std::string &filename, size_t basepath_length,
this->ResetEngine();
try {
this->engine->LoadScript(filename.c_str());
this->engine->LoadScript(filename);
} catch (Script_FatalError &e) {
Debug(script, 0, "Fatal error '{}' when trying to load the script '{}'.", e.GetErrorMessage(), filename);
return false;