[Scummvm-cvs-logs] scummvm master -> 787cbe18e806425311b8013d75dfd9de562b9da7
sev-
sev at scummvm.org
Tue May 27 13:12:38 CEST 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
787cbe18e8 MADS: Fix compilation with clang
Commit: 787cbe18e806425311b8013d75dfd9de562b9da7
https://github.com/scummvm/scummvm/commit/787cbe18e806425311b8013d75dfd9de562b9da7
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2014-05-27T14:12:01+03:00
Commit Message:
MADS: Fix compilation with clang
Changed paths:
engines/mads/compression.cpp
diff --git a/engines/mads/compression.cpp b/engines/mads/compression.cpp
index 5f78357..79cd178 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");
More information about the Scummvm-git-logs
mailing list