| 170 | } |
| 171 | |
| 172 | void 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 | |
| 185 | void ScriptInstance::GameLoop() |
| 186 | { |
no test coverage detected