diff options
author | Florian Kagerer | 2009-11-28 20:08:20 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-11-28 20:08:20 +0000 |
commit | ac19f4146b10a1a62830108f7d592be85336fe91 (patch) | |
tree | 94b02afc125eef951bd7f5c5f066fc3def28626a /engines/kyra | |
parent | 6fb79b8b3c84e44445aa438914b7ebb294f3c47b (diff) | |
download | scummvm-rg350-ac19f4146b10a1a62830108f7d592be85336fe91.tar.gz scummvm-rg350-ac19f4146b10a1a62830108f7d592be85336fe91.tar.bz2 scummvm-rg350-ac19f4146b10a1a62830108f7d592be85336fe91.zip |
LOL/Floppy: fixed crash
svn-id: r46177
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/resource_intern.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/resource_intern.cpp b/engines/kyra/resource_intern.cpp index aac76f4484..3630baf583 100644 --- a/engines/kyra/resource_intern.cpp +++ b/engines/kyra/resource_intern.cpp @@ -1251,7 +1251,7 @@ uint8 *CmpVocDecoder::process(uint8 *src, uint32 insize, uint32 *outsize, bool d _sndArray[i - 1] = v; } - uint16 numBytesOut = MIN<uint16>(vocOutEnd - dst, 8192); + uint32 numBytesOut = MIN<uint32>(vocOutEnd - dst, 8192); memcpy(dst, _sndArray, numBytesOut); dst += numBytesOut; } |