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

Function free_eshk

src/shknam.c:568–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566}
567
568void
569free_eshk(struct monst *mtmp)
570{
571 if (mtmp->mextra && ESHK(mtmp)) {
572 free((genericptr_t) ESHK(mtmp));
573 ESHK(mtmp) = (struct eshk *) 0;
574 }
575 mtmp->isshk = 0;
576}
577
578/* find a door in room sroom which is good for shop entrance.
579 returns -1 if no good door found, or the svd.doors index

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected