MCPcopy Create free account
hub / github.com/NetHack/NetHack / free_egd

Function free_egd

src/vault.c:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void
35free_egd(struct monst *mtmp)
36{
37 if (mtmp->mextra && EGD(mtmp)) {
38 free((genericptr_t) EGD(mtmp));
39 EGD(mtmp) = (struct egd *) 0;
40 }
41 mtmp->isgd = 0;
42}
43
44/* try to remove the temporary corridor (from vault to rest of map) being
45 maintained by guard 'grd'; if guard is still in it, removal will fail,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected