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

Method Died

src/script/script_instance.cpp:172–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void ScriptInstance::Died()
173{
174 Debug(script, 0, "The script died unexpectedly.");
175 this->is_dead = true;
176 this->in_shutdown = true;
177
178 this->last_allocated_memory = this->GetAllocatedMemory(); // Update cache
179
180 if (this->instance != nullptr) this->engine->ReleaseObject(this->instance.get());
181 this->engine.reset();
182 this->instance.reset();
183}
184
185void ScriptInstance::GameLoop()
186{

Callers 2

InitializeMethod · 0.95
GameLoopMethod · 0.95

Calls 4

GetAllocatedMemoryMethod · 0.95
ReleaseObjectMethod · 0.80
getMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected