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

Function freeroleoptvals

src/options.c:786–794  ·  view source on GitHub ↗

discard all saved option strings */

Source from the content-addressed store, hash-verified

784
785/* discard all saved option strings */
786void
787freeroleoptvals(void)
788{
789 int i, j;
790
791 for (i = 0; i < 4; ++i)
792 for (j = 0; j < num_opt_phases; ++j)
793 unsaveoptstr(roleopt2opt[i], j);
794}
795
796#if 0 /* not needed */
797

Callers 2

saveoptvalsFunction · 0.85
freedynamicdataFunction · 0.85

Calls 1

unsaveoptstrFunction · 0.85

Tested by

no test coverage detected