From e8667b36a116681aa9a3f260c4576c03a7960598 Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 14 Apr 2015 18:31:00 -0400 Subject: [PATCH] win32 perm inventory fix (from Alex) --- src/allmain.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/allmain.c b/src/allmain.c index 7a2ebe675..a1330f89f 100644 --- a/src/allmain.c +++ b/src/allmain.c @@ -61,10 +61,15 @@ boolean resuming; set_wear((struct obj *)0); /* for side-effects of worn starting gear */ (void) pickup(1); /* autopickup at initial location */ } else { /* restore old game */ +#ifndef WIN32 update_inventory(); /* for perm_invent */ +#endif read_engr_at(u.ux, u.uy); /* subset of pickup() */ } - +#ifdef WIN32 + update_inventory(); /* for perm_invent */ +#endif + (void) encumber_msg(); /* in case they auto-picked up something */ if (defer_see_monsters) { defer_see_monsters = FALSE;