Skip to content

Commit

Permalink
TONY: Fix bad offset for seek() in voice files
Browse files Browse the repository at this point in the history
Should fix bug https://bugs.scummvm.org/ticket/13012 for missing speech
  • Loading branch information
antoniou79 committed Oct 17, 2021
1 parent cc2f249 commit 2b5e27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/tony/tony.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 2b5e27f

Please sign in to comment.