[Scummvm-git-logs] scummvm master -> 2b5e27fd5612650395954e8c1094393d4b61ce9f

antoniou79 a.antoniou79 at gmail.com
Sun Oct 17 11:52:25 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:
2b5e27fd56 TONY: Fix bad offset for seek() in voice files


Commit: 2b5e27fd5612650395954e8c1094393d4b61ce9f
    https://github.com/scummvm/scummvm/commit/2b5e27fd5612650395954e8c1094393d4b61ce9f
Author: antoniou79 (a.antoniou79 at gmail.com)
Date: 2021-10-17T14:51:16+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