diff options
author | lukaslw | 2014-10-09 21:01:31 +0200 |
---|---|---|
committer | lukaslw | 2014-10-09 21:01:31 +0200 |
commit | c9c93b4b4dd20c094da57729a96abb0b978de40f (patch) | |
tree | 961036332247c022854a17d1f90b63fe697f7dcf /engines/prince/script.cpp | |
parent | 0e6ae70d9b94ace8665faeca5666c08c8b7ecf2b (diff) | |
download | scummvm-rg350-c9c93b4b4dd20c094da57729a96abb0b978de40f.tar.gz scummvm-rg350-c9c93b4b4dd20c094da57729a96abb0b978de40f.tar.bz2 scummvm-rg350-c9c93b4b4dd20c094da57729a96abb0b978de40f.zip |
PRINCE: Change all WRITE_UINT16 to WRITE_LE_UINT16 and all WRITE_UINT32 to WRITE_LE_UINT32 for endian-safety fix
Diffstat (limited to 'engines/prince/script.cpp')
-rw-r--r-- | engines/prince/script.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/prince/script.cpp b/engines/prince/script.cpp index 0181f6912d..75d084f639 100644 --- a/engines/prince/script.cpp +++ b/engines/prince/script.cpp @@ -210,7 +210,7 @@ uint32 Script::getBackAnimId(int roomBackAnimOffset, int slot) { } void Script::setBackAnimId(int roomBackAnimOffset, int slot, int animId) { - WRITE_UINT32(&_data[roomBackAnimOffset + slot * 4], animId); + WRITE_LE_UINT32(&_data[roomBackAnimOffset + slot * 4], animId); } byte Script::getObjId(int roomObjOffset, int slot) { @@ -1567,7 +1567,7 @@ void Interpreter::O_ENABLEDIALOGOPT() { int32 opt = readScriptFlagValue(); int dialogDataValue = (int)READ_LE_UINT32(_vm->_dialogData); dialogDataValue &= ~(1u << opt); - WRITE_UINT32(_vm->_dialogData, dialogDataValue); + WRITE_LE_UINT32(_vm->_dialogData, dialogDataValue); debugInterpreter("O_ENABLEDIALOGOPT opt %d", opt); } @@ -1575,7 +1575,7 @@ void Interpreter::O_DISABLEDIALOGOPT() { int32 opt = readScriptFlagValue(); int dialogDataValue = (int)READ_LE_UINT32(_vm->_dialogData); dialogDataValue |= (1u << opt); - WRITE_UINT32(_vm->_dialogData, dialogDataValue); + WRITE_LE_UINT32(_vm->_dialogData, dialogDataValue); debugInterpreter("O_DISABLEDIALOGOPT opt %d", opt); } |