diff options
author | Sven Hesse | 2007-02-01 20:19:21 +0000 |
---|---|---|
committer | Sven Hesse | 2007-02-01 20:19:21 +0000 |
commit | f1a4f57a5349792f7cb8aeaabf8d794ffb79b7d4 (patch) | |
tree | ce2ffe47ee0f877d9419e644b03eb47fced6db79 /engines/gob | |
parent | 0a18259d78f59a79270467a6fa70172e5d96b625 (diff) | |
download | scummvm-rg350-f1a4f57a5349792f7cb8aeaabf8d794ffb79b7d4.tar.gz scummvm-rg350-f1a4f57a5349792f7cb8aeaabf8d794ffb79b7d4.tar.bz2 scummvm-rg350-f1a4f57a5349792f7cb8aeaabf8d794ffb79b7d4.zip |
Fixed wrong date display (bug #1650124), tm_mon is in the range 0-11
svn-id: r25328
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/inter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/inter.cpp b/engines/gob/inter.cpp index ca3733818a..ef9a34e23c 100644 --- a/engines/gob/inter.cpp +++ b/engines/gob/inter.cpp @@ -284,7 +284,7 @@ void Inter::renewTimeInVars(void) { t = localtime(&now); WRITE_VAR(5, 1900 + t->tm_year); - WRITE_VAR(6, t->tm_mon); + WRITE_VAR(6, t->tm_mon + 1); WRITE_VAR(7, 0); WRITE_VAR(8, t->tm_mday); WRITE_VAR(9, t->tm_hour); |