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

Function FreeGroup

editor/Group.cpp:218–231  ·  view source on GitHub ↗

Free a group. Parameters: g - the group to be freed

Source from the content-addressed store, hash-verified

216// Free a group.
217// Parameters: g - the group to be freed
218void FreeGroup(group *g) {
219 for (int r = 0; r < g->nrooms; r++)
220 FreeRoom(&g->rooms[r]);
221
222 mem_free(g->rooms);
223
224 if (g->nobjects)
225 mem_free(g->objects);
226
227 if (g->ntriggers)
228 mem_free(g->triggers);
229
230 mem_free(g);
231}
232
233// Copy the given list of rooms to a group
234// Parameters: nrooms - the number of rooms in list

Callers 2

OnEditLoadScrapMethod · 0.85
CopySelectedRoomsFunction · 0.85

Calls 1

FreeRoomFunction · 0.85

Tested by

no test coverage detected