Codechange: Pass Script Info by reference.
This commit is contained in:
committed by
Peter Nelson
parent
341cdbc16b
commit
a5578166bb
@@ -93,7 +93,7 @@ void ScriptScanner::Reset()
|
||||
|
||||
void ScriptScanner::RegisterScript(ScriptInfo *info)
|
||||
{
|
||||
std::string script_original_name = this->GetScriptName(info);
|
||||
std::string script_original_name = this->GetScriptName(*info);
|
||||
std::string script_name = fmt::format("{}.{}", script_original_name, info->GetVersion());
|
||||
|
||||
/* Check if GetShortName follows the rules */
|
||||
|
||||
Reference in New Issue
Block a user