check for NULL Lua_State prior to lua_close()

fixes #616
This commit is contained in:
nhmall
2021-10-21 13:34:21 -04:00
parent 182d1837fa
commit 090f1fb029

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