MADS: Fix compilation with clang

This commit is contained in:
Eugene Sandulenko 2014-05-27 14:11:44 +03:00
parent 5a9003f2aa
commit 787cbe18e8

View File

@ -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];
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;
FabDecompressor fab;
fab.decompress(sourceData, _items[i]._compressedSize, _items[i]._data, _items[i]._size);
delete[] sourceData;
break;
}
default:
error("Unknown compression type encountered");