Tutorial: reset inventory letters

This commit is contained in:
Pasi Kallinen
2023-03-05 17:54:14 +02:00
parent c2d6bde9cd
commit 0b5956ba34
+2
View File
@@ -1581,6 +1581,7 @@ nhl_gamestate(lua_State *L)
if (reststate && stored) { if (reststate && stored) {
/* restore game state */ /* restore game state */
gm.moves = moves; gm.moves = moves;
gl.lastinvnr = 51;
while (gi.invent) while (gi.invent)
useupall(gi.invent); useupall(gi.invent);
while (invent) { while (invent) {
@@ -1604,6 +1605,7 @@ nhl_gamestate(lua_State *L)
otmp->owornmask = wornmask; otmp->owornmask = wornmask;
invent = otmp; invent = otmp;
} }
gl.lastinvnr = 51;
moves = gm.moves; moves = gm.moves;
stored = TRUE; stored = TRUE;
} }