Clear saved lua_State from dungeons

These will be recreated if necessary in makerooms
This commit is contained in:
Pasi Kallinen
2020-04-20 16:48:52 +03:00
parent 776ebd809e
commit 2d67aaebb8

View 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));