[Scummvm-git-logs] scummvm master -> b47cae789b5ccfbf3999c870d372081ad9c50629

dreammaster dreammaster at scummvm.org
Wed Aug 8 03:38:44 CEST 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
b47cae789b TINSEL: Fix displayed saved game month off by one


Commit: b47cae789b5ccfbf3999c870d372081ad9c50629
    https://github.com/scummvm/scummvm/commit/b47cae789b5ccfbf3999c870d372081ad9c50629
Author: David Fioramonti (dafioram at gmail.com)
Date: 2018-08-07T18:38:40-07:00

Commit Message:
TINSEL: Fix displayed saved game month off by one

This corrects the displayed month for querySaveMetaInfos being a month
behind.

Changed paths:
    engines/tinsel/detection.cpp


diff --git a/engines/tinsel/detection.cpp b/engines/tinsel/detection.cpp
index 8b51320..a68ce0b 100644
--- a/engines/tinsel/detection.cpp
+++ b/engines/tinsel/detection.cpp
@@ -159,7 +159,7 @@ SaveStateDescriptor TinselMetaEngine::querySaveMetaInfos(const char *target, int
 	int8 tm_min = file->readSByte();
 	file->readSByte(); // skip secs
 
-	desc.setSaveDate(1900+tm_year, tm_mon, tm_mday);
+	desc.setSaveDate(1900 + tm_year, 1 + tm_mon, tm_mday);
 	desc.setSaveTime(tm_hour, tm_min);
 
 	if (ver >= 3) {





More information about the Scummvm-git-logs mailing list