diff options
author | Eugene Sandulenko | 2018-06-29 09:13:51 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-29 09:14:17 +0200 |
commit | 19e3e229b60395e126827db78833bbad0c8b61f9 (patch) | |
tree | 8c185bf564da8ca11927eb6a16cac51592be06b4 | |
parent | ec084129259e41f8e37e84424b951329d37a02af (diff) | |
download | scummvm-rg350-19e3e229b60395e126827db78833bbad0c8b61f9.tar.gz scummvm-rg350-19e3e229b60395e126827db78833bbad0c8b61f9.tar.bz2 scummvm-rg350-19e3e229b60395e126827db78833bbad0c8b61f9.zip |
SHERLOCK: Fix warning
-rw-r--r-- | engines/sherlock/image_file.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sherlock/image_file.cpp b/engines/sherlock/image_file.cpp index 112655648a..5202401fdf 100644 --- a/engines/sherlock/image_file.cpp +++ b/engines/sherlock/image_file.cpp @@ -93,11 +93,11 @@ void ImageFile::load(Common::SeekableReadStream &stream, bool skipPalette, bool } // Load data for frame and decompress it - byte *data = new byte[frame._size + 4]; - stream.read(data, frame._size); - Common::fill(data + frame._size, data + frame._size + 4, 0); - frame.decompressFrame(data, IS_ROSE_TATTOO); - delete[] data; + byte *data1 = new byte[frame._size + 4]; + stream.read(data1, frame._size); + Common::fill(data1 + frame._size, data1 + frame._size + 4, 0); + frame.decompressFrame(data1, IS_ROSE_TATTOO); + delete[] data1; push_back(frame); } |