diff options
author | athrxx | 2011-06-15 00:09:32 +0200 |
---|---|---|
committer | athrxx | 2011-06-15 00:10:55 +0200 |
commit | 1ca44c076c261dedc605401d39b51603fc0282af (patch) | |
tree | 0511da5a4b1e96e9b74a4d19b174f0d6b01a5a03 /engines/scumm/imuse | |
parent | b6dd53072446fa967edb03d34044a9054ea1fa56 (diff) | |
download | scummvm-rg350-1ca44c076c261dedc605401d39b51603fc0282af.tar.gz scummvm-rg350-1ca44c076c261dedc605401d39b51603fc0282af.tar.bz2 scummvm-rg350-1ca44c076c261dedc605401d39b51603fc0282af.zip |
SCUMM: fix possible portability issue
Diffstat (limited to 'engines/scumm/imuse')
-rw-r--r-- | engines/scumm/imuse/imuse.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/scumm/imuse/imuse.cpp b/engines/scumm/imuse/imuse.cpp index 7d971f5ca4..6813566144 100644 --- a/engines/scumm/imuse/imuse.cpp +++ b/engines/scumm/imuse/imuse.cpp @@ -26,6 +26,7 @@ #include "common/util.h" #include "common/system.h" +#include "common/endian.h" #include "scumm/imuse/imuse.h" #include "scumm/imuse/imuse_internal.h" @@ -101,8 +102,14 @@ IMuseInternal::~IMuseInternal() { byte *IMuseInternal::findStartOfSound(int sound, int ct) { int32 size, pos; - static uint32 id[] = { 'MThd', 'FORM', 'MDhd', 'MDpg' }; - + + static const uint32 id[] = { + MKTAG('M', 'T', 'h', 'd'), + MKTAG('F', 'O', 'R', 'M'), + MKTAG('M', 'D', 'h', 'd'), + MKTAG('M', 'D', 'p', 'g') + }; + byte *ptr = g_scumm->_res->_types[rtSound][sound]._address; if (ptr == NULL) { |