MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ~ScriptInstance

Method ~ScriptInstance

src/script/script_instance.cpp:155–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155ScriptInstance::~ScriptInstance()
156{
157 ScriptObject::ActiveInstance active(*this);
158 this->in_shutdown = true;
159
160 if (instance != nullptr) this->engine->ReleaseObject(this->instance.get());
161
162 /* Engine must be reset explicitly in scope of the active instance. */
163 this->engine.reset();
164}
165
166void ScriptInstance::Continue()
167{

Callers

nothing calls this directly

Calls 3

ReleaseObjectMethod · 0.80
getMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected