aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2008-04-16 14:08:01 +0000
committerTravis Howell2008-04-16 14:08:01 +0000
commitaf4b21a112189df1c86d2e4c4f65e849f6b2346d (patch)
tree623ba908cce92d94ee54d6d38a23e80eba139e1b
parent888eb26f8b372b355dc34a231a2d2dcf9e6e8dd4 (diff)
downloadscummvm-rg350-af4b21a112189df1c86d2e4c4f65e849f6b2346d.tar.gz
scummvm-rg350-af4b21a112189df1c86d2e4c4f65e849f6b2346d.tar.bz2
scummvm-rg350-af4b21a112189df1c86d2e4c4f65e849f6b2346d.zip
Correct time events duration, when saving in Elvira 1.
svn-id: r31516
-rw-r--r--engines/agos/saveload.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp
index 1957d6ec10..36c88805bc 100644
--- a/engines/agos/saveload.cpp
+++ b/engines/agos/saveload.cpp
@@ -1069,7 +1069,7 @@ bool AGOSEngine::saveGame(uint slot, const char *caption) {
Common::OutSaveFile *f;
uint item_index, num_item, i;
TimeEvent *te;
- uint32 curTime = 0;
+ uint32 curTime = getTime();
uint32 gsc = _gameStoppedClock;
_lockWord |= 0x100;
@@ -1084,7 +1084,7 @@ bool AGOSEngine::saveGame(uint slot, const char *caption) {
f->writeUint32BE(_itemArrayInited - 1);
f->writeUint32BE(0xFFFFFFFF);
- f->writeUint32BE(0);
+ f->writeUint32BE(curTime);
f->writeUint32BE(0);
i = 0;