diff --git a/src/nhlua.c b/src/nhlua.c index 620159f9a..3b3ba0582 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -1030,6 +1030,8 @@ nhl_dnum_name(lua_State *L) return 1; } +DISABLE_WARNING_UNREACHABLE_CODE + /* set or get variables which are saved and restored along the game. nh.variable("test", 10); local ten = nh.variable("test"); */ @@ -1147,6 +1149,8 @@ save_luadata(NHFILE *nhfp) free(lua_data); } +RESTORE_WARNING_UNREACHABLE_CODE + /* restore nh_lua_variables table from file */ void restore_luadata(NHFILE *nhfp)