aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
authorEugene Sandulenko2014-05-27 14:11:44 +0300
committerEugene Sandulenko2014-05-27 14:12:01 +0300
commit787cbe18e806425311b8013d75dfd9de562b9da7 (patch)
treece86e3577e4cda79494c335c0148d0d96ed6dc88 /engines/mads
parent5a9003f2aa9c2ebc427c735db35f606709b6fb17 (diff)
downloadscummvm-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.cpp17
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");