mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 10:58:01 +00:00
SCI: Fixed a bug in the script disassembler
svn-id: r54463
This commit is contained in:
parent
f5b1b9fa75
commit
169c6be32b
@ -85,7 +85,7 @@ reg_t disassemble(EngineState *s, reg_t pos, bool printBWTag, bool printBytecode
|
||||
|
||||
if (pos.offset >= scr_size) {
|
||||
warning("Trying to disassemble beyond end of script");
|
||||
return pos;
|
||||
return NULL_REG;
|
||||
}
|
||||
|
||||
int16 opparams[4];
|
||||
@ -124,8 +124,9 @@ reg_t disassemble(EngineState *s, reg_t pos, bool printBWTag, bool printBytecode
|
||||
|
||||
case Script_SByte:
|
||||
case Script_Byte:
|
||||
param_value = scr[retval.offset++];
|
||||
debugN(" %02x", scr[retval.offset++]);
|
||||
param_value = scr[retval.offset];
|
||||
debugN(" %02x", scr[retval.offset]);
|
||||
retval.offset++;
|
||||
break;
|
||||
|
||||
case Script_Word:
|
||||
|
Loading…
x
Reference in New Issue
Block a user