MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / FreeObjectInfo

Function FreeObjectInfo

Descent3/objinfo.cpp:228–233  ·  view source on GitHub ↗

Frees up all the Objects and any memory allocated

Source from the content-addressed store, hash-verified

226
227// Frees up all the Objects and any memory allocated
228void FreeObjectInfo(void) {
229 for (int i = 0; i < MAX_OBJECT_IDS; i++) {
230 if (Object_info[i].type != OBJ_NONE)
231 FreeObjectID(i);
232 }
233}
234
235// Find an object with the given type. Returns -1 if none found.
236int GetObjectID(int type) {

Callers

nothing calls this directly

Calls 1

FreeObjectIDFunction · 0.85

Tested by

no test coverage detected