Codechange: Pass Script engine by reference.
This commit is contained in:
committed by
Peter Nelson
parent
72ca962b84
commit
341cdbc16b
@@ -28,7 +28,7 @@ std::string GameScannerInfo::GetScriptName(ScriptInfo *info)
|
||||
return info->GetName();
|
||||
}
|
||||
|
||||
void GameScannerInfo::RegisterAPI(class Squirrel *engine)
|
||||
void GameScannerInfo::RegisterAPI(class Squirrel &engine)
|
||||
{
|
||||
GameInfo::RegisterAPI(engine);
|
||||
}
|
||||
@@ -81,7 +81,7 @@ std::string GameScannerLibrary::GetScriptName(ScriptInfo *info)
|
||||
return fmt::format("{}.{}", library->GetCategory(), library->GetInstanceName());
|
||||
}
|
||||
|
||||
void GameScannerLibrary::RegisterAPI(class Squirrel *engine)
|
||||
void GameScannerLibrary::RegisterAPI(class Squirrel &engine)
|
||||
{
|
||||
GameLibrary::RegisterAPI(engine);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user