From: Pasi Kallinen Date: Sun, 5 Mar 2023 15:54:09 +0000 (+0200) Subject: Tutorial: reset inventory letters X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b5956ba340cd0758d2ef8b524f7c9dd7ce62784;p=nethack Tutorial: reset inventory letters --- diff --git a/src/nhlua.c b/src/nhlua.c index 26793e90a..e1c8f3dc4 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -1581,6 +1581,7 @@ nhl_gamestate(lua_State *L) if (reststate && stored) { /* restore game state */ gm.moves = moves; + gl.lastinvnr = 51; while (gi.invent) useupall(gi.invent); while (invent) { @@ -1604,6 +1605,7 @@ nhl_gamestate(lua_State *L) otmp->owornmask = wornmask; invent = otmp; } + gl.lastinvnr = 51; moves = gm.moves; stored = TRUE; }