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

Method FinalRelease

src/script/api/script_asyncmode.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void ScriptAsyncMode::FinalRelease()
49{
50 if (this->GetDoCommandAsyncModeInstance() != this) {
51 /* Ignore this error if the script is not alive. */
52 if (ScriptObject::GetActiveInstance().IsAlive()) {
53 throw Script_FatalError("Asyncmode object was removed while it was not the latest *Mode object created.");
54 }
55 }
56}
57
58ScriptAsyncMode::~ScriptAsyncMode()
59{

Callers

nothing calls this directly

Calls 3

Script_FatalErrorClass · 0.85
IsAliveMethod · 0.80

Tested by

no test coverage detected