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

Method CollectGarbage

src/script/script_instance.cpp:275–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275void ScriptInstance::CollectGarbage()
276{
277 if (this->is_started && !this->IsDead()) {
278 ScriptObject::ActiveInstance active(*this);
279 this->engine->CollectGarbage();
280 }
281}
282
283/* static */ void ScriptInstance::DoCommandReturn(ScriptInstance &instance)
284{

Callers

nothing calls this directly

Calls 1

IsDeadMethod · 0.95

Tested by

no test coverage detected