diff options
| author | Torbjörn Andersson | 2004-01-10 21:21:20 +0000 | 
|---|---|---|
| committer | Torbjörn Andersson | 2004-01-10 21:21:20 +0000 | 
| commit | 1db3b65825a1d6efa333edb59cdc7c54d0f9b953 (patch) | |
| tree | 42dc31df0df0ac799e6b859183d8bdcd128deff0 /sword2/interpreter.cpp | |
| parent | 3e8a551d8b3cef47a96270d402d784a4cda6fb61 (diff) | |
| download | scummvm-rg350-1db3b65825a1d6efa333edb59cdc7c54d0f9b953.tar.gz scummvm-rg350-1db3b65825a1d6efa333edb59cdc7c54d0f9b953.tar.bz2 scummvm-rg350-1db3b65825a1d6efa333edb59cdc7c54d0f9b953.zip | |
cleanup
svn-id: r12309
Diffstat (limited to 'sword2/interpreter.cpp')
| -rw-r--r-- | sword2/interpreter.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/sword2/interpreter.cpp b/sword2/interpreter.cpp index bd3bc175a0..296fd5b7b4 100644 --- a/sword2/interpreter.cpp +++ b/sword2/interpreter.cpp @@ -230,7 +230,7 @@ int Logic::runScript(char *scriptData, char *objectData, uint32 *offset) {  	const uint32 *offsetTable = (const uint32 *) code;  	if (*offset < noScripts) { -		ip = READ_LE_UINT32(&offsetTable[*offset]); +		ip = FROM_LE_32(offsetTable[*offset]);  		scriptNumber = *offset;  		debug(4, "Start script %d with offset %d", *offset, ip);  	} else { @@ -239,7 +239,7 @@ int Logic::runScript(char *scriptData, char *objectData, uint32 *offset) {  		ip = *offset;  		for (i = 1; i < noScripts; i++) { -			if (ip < READ_LE_UINT32(code + 4 * i)) +			if (FROM_LE_32(offsetTable[i]) >= ip)  				break;  		} | 
