From: Pasi Kallinen Date: Mon, 20 Apr 2020 13:48:52 +0000 (+0300) Subject: Clear saved lua_State from dungeons X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d67aaebb834ffbd859acbbe440a3aa7e0f4ba05;p=nethack Clear saved lua_State from dungeons These will be recreated if necessary in makerooms --- diff --git a/src/dungeon.c b/src/dungeon.c index 1bbcaafc2..e5c2be68b 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -210,6 +210,9 @@ NHFILE *nhfp; } last = g.branches = (branch *) 0; + for (i = 0; i < g.n_dgns; i++) + g.dungeons[i].themelua = (lua_State *) 0; + if (nhfp->structlevel) mread(nhfp->fd, (genericptr_t) &count, sizeof(count));