SCI: Add EngineState::_kernel member for convenience

svn-id: r44173
This commit is contained in:
Max Horn 2009-09-17 17:00:36 +00:00
parent c2455aad87
commit 5f440854b7
13 changed files with 47 additions and 48 deletions

View file

@ -108,7 +108,7 @@ reg_t disassemble(EngineState *s, reg_t pos, int print_bw_tag, int print_bytecod
uint opcode;
int bytecount = 1;
int i = 0;
Kernel *kernel = ((SciEngine*)g_engine)->getKernel();
Kernel *kernel = s->_kernel;
if (!mobj) {
warning("Disassembly failed: Segment %04x non-existant or not a script", pos.segment);