diff options
Diffstat (limited to 'games/f1spirit-remake/files/patch-sources-F1SpiritGame.cpp')
-rw-r--r-- | games/f1spirit-remake/files/patch-sources-F1SpiritGame.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/games/f1spirit-remake/files/patch-sources-F1SpiritGame.cpp b/games/f1spirit-remake/files/patch-sources-F1SpiritGame.cpp new file mode 100644 index 000000000000..d657228b4cd1 --- /dev/null +++ b/games/f1spirit-remake/files/patch-sources-F1SpiritGame.cpp @@ -0,0 +1,12 @@ +--- sources/F1SpiritGame.cpp.orig 2006-02-18 13:33:34.000000000 +0300 ++++ sources/F1SpiritGame.cpp 2008-05-17 04:03:21.000000000 +0400 +@@ -1615,7 +1615,8 @@ + struct tm *today; + + gettimeofday(&ttime, NULL); +- today=localtime(&(ttime.tv_sec)); ++ time_t tmp = ttime.tv_sec; ++ today=localtime(&tmp); + + fputc(today->tm_year,replay_fp); + fputc(today->tm_mon,replay_fp); |