[Scummvm-git-logs] scummvm branch-2-5 -> 5bb770841baacd468a601a9bc51f45c68caaf8cc

antoniou79 a.antoniou79 at gmail.com
Sun Oct 17 12:53:20 UTC 2021


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:
5bb770841b TONY: Fix bad offset for seek() in voice files


Commit: 5bb770841baacd468a601a9bc51f45c68caaf8cc
    https://github.com/scummvm/scummvm/commit/5bb770841baacd468a601a9bc51f45c68caaf8cc
Author: antoniou79 (a.antoniou79 at gmail.com)
Date: 2021-10-17T15:53:12+03:00

Commit Message:
TONY: Fix bad offset for seek() in voice files

Should fix bug https://bugs.scummvm.org/ticket/13012 for missing speech

Changed paths:
    engines/tony/tony.cpp


diff --git a/engines/tony/tony.cpp b/engines/tony/tony.cpp
index 880dddc9b1..ea2ca11401 100644
--- a/engines/tony/tony.cpp
+++ b/engines/tony/tony.cpp
@@ -601,7 +601,7 @@ bool TonyEngine::openVoiceDatabase() {
 	}
 
 	// Read in the index
-	_vdbFP.seek(-8 - (numfiles * VOICE_HEADER_SIZE), SEEK_END);
+	_vdbFP.seek(-8 - (int64)(numfiles * VOICE_HEADER_SIZE), SEEK_END);
 
 	for (uint32 i = 0; i < numfiles; ++i) {
 		VoiceHeader vh;




More information about the Scummvm-git-logs mailing list