]> granicus.if.org Git - nethack/commitdiff
Clear saved lua_State from dungeons
authorPasi Kallinen <paxed@alt.org>
Mon, 20 Apr 2020 13:48:52 +0000 (16:48 +0300)
committerPasi Kallinen <paxed@alt.org>
Mon, 20 Apr 2020 13:48:56 +0000 (16:48 +0300)
These will be recreated if necessary in makerooms

src/dungeon.c

index 1bbcaafc2e371344079151f9a81d50540b2a1d48..e5c2be68bfd29750a3485eb42289aa8b45026846 100644 (file)
@@ -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));