aboutsummaryrefslogtreecommitdiff
path: root/scumm/smush
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/smush')
-rw-r--r--scumm/smush/saud_channel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/smush/saud_channel.cpp b/scumm/smush/saud_channel.cpp
index c101c0d346..6601f5a209 100644
--- a/scumm/smush/saud_channel.cpp
+++ b/scumm/smush/saud_channel.cpp
@@ -232,8 +232,8 @@ bool SaudChannel::checkParameters(int index, int nb, int flags, int volume, int
bool SaudChannel::appendData(Chunk & b, int size) {
if(_dataSize == -1) { // First call
assert(size > 8);
- Chunk::type saud_type = b.getDword(); saud_type = TO_BE_32(saud_type);
- unsigned int saud_size = b.getDword(); saud_size = TO_BE_32(saud_size);
+ Chunk::type saud_type = b.getDword(); saud_type = SWAP_BYTES(saud_type);
+ unsigned int saud_size = b.getDword(); saud_size = SWAP_BYTES(saud_size);
if(saud_type != TYPE_SAUD) error("Invalid Chunk for SaudChannel : %X", saud_type);
size -= 8;
_dataSize = -2; // We don't get here again...