diff options
author | Eugene Sandulenko | 2005-08-11 15:04:12 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-08-11 15:04:12 +0000 |
commit | 3d4fe0470e663bb966842d06c424f7e46d25947f (patch) | |
tree | f7ec950e90bf9e4b3980caeafca031d4d9b69b1c /saga | |
parent | 45ca2e66ea53a3b7bcb27b487f817222e237cf65 (diff) | |
download | scummvm-rg350-3d4fe0470e663bb966842d06c424f7e46d25947f.tar.gz scummvm-rg350-3d4fe0470e663bb966842d06c424f7e46d25947f.tar.bz2 scummvm-rg350-3d4fe0470e663bb966842d06c424f7e46d25947f.zip |
Fix bug #1256701 "ITE: Crashes during conversations"
svn-id: r18658
Diffstat (limited to 'saga')
-rw-r--r-- | saga/sndres.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/saga/sndres.cpp b/saga/sndres.cpp index a4e21551b3..2b0e585cfe 100644 --- a/saga/sndres.cpp +++ b/saga/sndres.cpp @@ -265,6 +265,11 @@ bool SndRes::load(ResourceContext *context, uint32 resourceId, SoundBuffer &buff error("SndRes::load Unknown sound type"); } + // In ITE CD De some voices are absent and contain just 5 bytes header + // Round it to even number so soundmanager will not crash. + // See bug #1256701 + buffer.size &= ~(0x1); + return result; } |