Skip to content

Commit

Permalink
Check sound needs decompressing
Browse files Browse the repository at this point in the history
  • Loading branch information
pskelton committed Nov 26, 2023
1 parent 973a7f7 commit 43fa946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Library/Snd/SndReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Blob SndReader::read(const std::string &filename) const {
const SndEntry &entry = pos->second;

Blob result = _snd.subBlob(entry.offset, entry.size);
if (entry.decompressedSize)
if (entry.decompressedSize && entry.decompressedSize != entry.size)
result = zlib::uncompress(result, entry.decompressedSize);
return result;
}
Expand Down

0 comments on commit 43fa946

Please sign in to comment.