diff options
| author | Ruediger Hanke | 2002-08-25 20:14:52 +0000 | 
|---|---|---|
| committer | Ruediger Hanke | 2002-08-25 20:14:52 +0000 | 
| commit | a605b453ce509f83e80129c80c18e97eca7fc023 (patch) | |
| tree | 2927db898e6ddd2cc59ad30fedd574596718e034 | |
| parent | 31562600b7ff4f2b467336df153204276ad4a9b6 (diff) | |
| download | scummvm-rg350-a605b453ce509f83e80129c80c18e97eca7fc023.tar.gz scummvm-rg350-a605b453ce509f83e80129c80c18e97eca7fc023.tar.bz2 scummvm-rg350-a605b453ce509f83e80129c80c18e97eca7fc023.zip | |
Endian fix
svn-id: r4858
| -rw-r--r-- | scumm/smush/saud_channel.cpp | 4 | 
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... | 
