|
|
@ -30,7 +30,7 @@ ScriptExecMode::ScriptExecMode()
|
|
|
|
this->SetDoCommandMode(&ScriptExecMode::ModeProc, this);
|
|
|
|
this->SetDoCommandMode(&ScriptExecMode::ModeProc, this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ScriptExecMode::~ScriptExecMode()
|
|
|
|
void ScriptExecMode::FinalRelease()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (this->GetDoCommandModeInstance() != this) {
|
|
|
|
if (this->GetDoCommandModeInstance() != this) {
|
|
|
|
/* Ignore this error if the script already died. */
|
|
|
|
/* Ignore this error if the script already died. */
|
|
|
@ -38,5 +38,9 @@ ScriptExecMode::~ScriptExecMode()
|
|
|
|
throw Script_FatalError("ScriptExecMode object was removed while it was not the latest *Mode object created.");
|
|
|
|
throw Script_FatalError("ScriptExecMode object was removed while it was not the latest *Mode object created.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ScriptExecMode::~ScriptExecMode()
|
|
|
|
|
|
|
|
{
|
|
|
|
this->SetDoCommandMode(this->last_mode, this->last_instance);
|
|
|
|
this->SetDoCommandMode(this->last_mode, this->last_instance);
|
|
|
|
}
|
|
|
|
}
|
|
|
|