diff options
author | Paul Gilbert | 2014-08-24 12:18:41 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-24 12:18:41 -0400 |
commit | 1073646c8e20940ec606edac06ffd3e2eb015f49 (patch) | |
tree | 42850a1b7312ee6fe297323745b8231161563e9a | |
parent | 7b1d0064fe3718142af2d764699d705cd2258669 (diff) | |
download | scummvm-rg350-1073646c8e20940ec606edac06ffd3e2eb015f49.tar.gz scummvm-rg350-1073646c8e20940ec606edac06ffd3e2eb015f49.tar.bz2 scummvm-rg350-1073646c8e20940ec606edac06ffd3e2eb015f49.zip |
ACCESS: Fix negative seek in cmdSetVideoSound
-rw-r--r-- | engines/access/scripts.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/access/scripts.cpp b/engines/access/scripts.cpp index 2a834f8855..37d1d50899 100644 --- a/engines/access/scripts.cpp +++ b/engines/access/scripts.cpp @@ -660,12 +660,14 @@ void Scripts::cmdLoadSound() { void Scripts::CMDFREESOUND() { error("TODO CMDFREESOUND"); } -void Scripts::cmdSetVideoSound() { +void Scripts::cmdSetVideoSound() { + uint32 startPos = _data->pos(); _data->skip(4); cmdLoadSound(); - _data->skip(-6); + _data->seek(startPos); cmdSetVideo(); + _data->skip(2); _vm->_sound->_soundFrame = _data->readUint16LE(); _vm->_sound->_soundFlag = false; } |