MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / FinalRelease

Method FinalRelease

src/script/api/script_execmode.cpp:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void ScriptExecMode::FinalRelease()
32{
33 if (this->GetDoCommandModeInstance() != this) {
34 /* Ignore this error if the script is not alive. */
35 if (ScriptObject::GetActiveInstance().IsAlive()) {
36 throw Script_FatalError("ScriptExecMode object was removed while it was not the latest *Mode object created.");
37 }
38 }
39}
40
41ScriptExecMode::~ScriptExecMode()
42{

Callers

nothing calls this directly

Calls 3

Script_FatalErrorClass · 0.85
IsAliveMethod · 0.80

Tested by

no test coverage detected