Merge branch 'pr616' into NetHack-3.7

This commit is contained in:
nhmall
2021-10-21 13:36:50 -04:00
2 changed files with 3 additions and 1 deletions

View File

@@ -1314,6 +1314,7 @@ MAX_RADIUS defines the outer bound of the radius table, so leave it at 15
(pr #613 by argrath)
variable attknum was declared without initialization, and was used in
find_roll_to_hit() (pr #615 by argrath)
check for NULL lua_State before calling lua_close() (pr #616 by argrath)
Code Cleanup and Reorganization

View File

@@ -1375,7 +1375,8 @@ nhl_init(void)
void
nhl_done(lua_State *L)
{
lua_close(L);
if (L)
lua_close(L);
iflags.in_lua = FALSE;
}