Codechange: Pass ScriptInstance by reference.
This commit is contained in:
committed by
Peter Nelson
parent
13fcc0900e
commit
72ca962b84
@@ -49,7 +49,7 @@ void ScriptAsyncMode::FinalRelease()
|
||||
{
|
||||
if (this->GetDoCommandAsyncModeInstance() != this) {
|
||||
/* Ignore this error if the script is not alive. */
|
||||
if (ScriptObject::GetActiveInstance()->IsAlive()) {
|
||||
if (ScriptObject::GetActiveInstance().IsAlive()) {
|
||||
throw Script_FatalError("Asyncmode object was removed while it was not the latest *Mode object created.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user