mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
Fixed compilation.
svn-id: r23842
This commit is contained in:
parent
8116f167ad
commit
c51d6bb903
@ -194,6 +194,7 @@ void Logic::setupOpcodes() {
|
||||
OPCODE(fnChangeShadows)
|
||||
};
|
||||
|
||||
_numOpcodes = ARRAYSIZE(opcodes);
|
||||
_opcodes = opcodes;
|
||||
}
|
||||
|
||||
@ -609,7 +610,7 @@ int Logic::runScript2(byte *scriptData, byte *objectData, byte *offsetPtr) {
|
||||
case CP_CALL_MCODE:
|
||||
// Call an mcode routine
|
||||
Read16ip(parameter);
|
||||
assert(parameter < ARRAYSIZE(opcodes));
|
||||
assert(parameter < _numOpcodes);
|
||||
// amount to adjust stack by (no of parameters)
|
||||
Read8ip(value);
|
||||
debug(9, "CP_CALL_MCODE: '%s', %d", _opcodes[parameter].desc, value);
|
||||
|
@ -184,6 +184,7 @@ public:
|
||||
const char *desc;
|
||||
};
|
||||
const OpcodeEntry *_opcodes;
|
||||
int _numOpcodes;
|
||||
void setupOpcodes();
|
||||
|
||||
int32 fnTestFunction(int32 *params);
|
||||
|
Loading…
Reference in New Issue
Block a user