From 1ca44c076c261dedc605401d39b51603fc0282af Mon Sep 17 00:00:00 2001 From: athrxx Date: Wed, 15 Jun 2011 00:09:32 +0200 Subject: SCUMM: fix possible portability issue --- engines/scumm/imuse/imuse.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'engines/scumm/imuse/imuse.cpp') 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) { -- cgit v1.2.3