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

Method ~ScriptPriorityQueue

src/script/api/script_priorityqueue.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25
26ScriptPriorityQueue::~ScriptPriorityQueue()
27{
28 /* Release reference to stored objects. */
29 auto &inst = ScriptObject::GetActiveInstance();
30 if (!inst.InShutdown()) {
31 for (auto &i : this->queue) inst.ReleaseSQObject(const_cast<HSQOBJECT *>(&i.second));
32 }
33}
34
35SQInteger ScriptPriorityQueue::Insert(HSQUIRRELVM vm)
36{

Callers

nothing calls this directly

Calls 2

InShutdownMethod · 0.80
ReleaseSQObjectMethod · 0.80

Tested by

no test coverage detected