Save xlogfile time_t fields correctly

This commit is contained in:
Pasi Kallinen
2015-03-19 17:41:14 +02:00
parent 02cdaf5a09
commit 3cc3709d95
10 changed files with 25 additions and 16 deletions

View File

@@ -533,11 +533,11 @@ newgame()
#endif
program_state.something_worth_saving++; /* useful data now exists */
u.urealtime.realtime = (time_t)0L;
urealtime.realtime = (time_t)0L;
#if defined(BSD) && !defined(POSIX_TYPES)
(void) time((long *)&u.urealtime.restored);
(void) time((long *)&urealtime.restored);
#else
(void) time(&u.urealtime.restored);
(void) time(&urealtime.restored);
#endif
/* Success! */