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

Method ~ScriptObjectRef

src/script/api/script_object.hpp:471–474  ·  view source on GitHub ↗

* Release the reference counted object. */

Source from the content-addressed store, hash-verified

469 * Release the reference counted object.
470 */
471 ~ScriptObjectRef()
472 {
473 if (this->data != nullptr) this->data->Release();
474 }
475
476 /**
477 * Transfer ownership to the caller.

Callers

nothing calls this directly

Calls 1

ReleaseMethod · 0.45

Tested by

no test coverage detected