MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / ClearObject

Method ClearObject

neo/d3xp/script/Script_Program.cpp:998–1006  ·  view source on GitHub ↗

============ idScriptObject::ClearObject Resets the memory for the script object without changing its type. ============ */

Source from the content-addressed store, hash-verified

996============
997*/
998void idScriptObject::ClearObject( void ) {
999 size_t size;
1000
1001 if ( type != &type_object ) {
1002 // init object memory
1003 size = type->Size();
1004 memset( data, 0, size );
1005 }
1006}
1007
1008/*
1009============

Callers 4

ConstructScriptObjectMethod · 0.45
ConstructScriptObjectMethod · 0.45
ConstructScriptObjectMethod · 0.45

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected