MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / AddRef

Method AddRef

Sources/Jazz2/Scripting/ScriptActorWrapper.cpp:200–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198 }
199
200 void ScriptActorWrapper::AddRef()
201 {
202 _refCount++;
203
204 // Increment also the reference counter to the script side, so it isn't accidentally destroyed before the C++ side
205 if (!_isDead->Get()) {
206 _obj->AddRef();
207 }
208 }
209
210 void ScriptActorWrapper::Release()
211 {

Callers 1

ScriptActorWrapperMethod · 0.45

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected