diff options
author | Eugene Sandulenko | 2014-05-27 14:11:44 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2014-05-27 14:12:01 +0300 |
commit | 787cbe18e806425311b8013d75dfd9de562b9da7 (patch) | |
tree | ce86e3577e4cda79494c335c0148d0d96ed6dc88 /engines/mads | |
parent | 5a9003f2aa9c2ebc427c735db35f606709b6fb17 (diff) | |
download | scummvm-rg350-787cbe18e806425311b8013d75dfd9de562b9da7.tar.gz scummvm-rg350-787cbe18e806425311b8013d75dfd9de562b9da7.tar.bz2 scummvm-rg350-787cbe18e806425311b8013d75dfd9de562b9da7.zip |
MADS: Fix compilation with clang
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/compression.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/engines/mads/compression.cpp b/engines/mads/compression.cpp index 5f78357378..79cd1786de 100644 --- a/engines/mads/compression.cpp +++ b/engines/mads/compression.cpp @@ -79,14 +79,15 @@ void MadsPack::initialize(Common::SeekableReadStream *stream) { _items[i]._data = sourceData; break; - case COMPRESS_FAB: - // Decompress the entry - _items[i]._data = new byte[_items[i]._size]; - - FabDecompressor fab; - fab.decompress(sourceData, _items[i]._compressedSize, _items[i]._data, _items[i]._size); - delete[] sourceData; - break; + case COMPRESS_FAB: { + // Decompress the entry + _items[i]._data = new byte[_items[i]._size]; + + FabDecompressor fab; + fab.decompress(sourceData, _items[i]._compressedSize, _items[i]._data, _items[i]._size); + delete[] sourceData; + break; + } default: error("Unknown compression type encountered"); |