diff options
author | Johannes Schickel | 2016-04-06 23:05:54 +0200 |
---|---|---|
committer | Johannes Schickel | 2016-04-06 23:05:54 +0200 |
commit | c51c89ca3232a4bb128949b033f8f771aeff6dc3 (patch) | |
tree | 5c6060b5b84697721db70f812dbc87bdf9a22860 /engines/sci/engine/scriptdebug.cpp | |
parent | 8fa543f58f251ef5c695f6c288ecd0303ec14144 (diff) | |
parent | c11b09dff91bdb5047722a0a4399f34fcc042589 (diff) | |
download | scummvm-rg350-c51c89ca3232a4bb128949b033f8f771aeff6dc3.tar.gz scummvm-rg350-c51c89ca3232a4bb128949b033f8f771aeff6dc3.tar.bz2 scummvm-rg350-c51c89ca3232a4bb128949b033f8f771aeff6dc3.zip |
Merge pull request #721 from lordhoto/sci-saveload-cleanup
SCI: Cleanup of Save/Load Code
Diffstat (limited to 'engines/sci/engine/scriptdebug.cpp')
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index 7d70f30d55..b017e62df7 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -741,13 +741,13 @@ void logKernelCall(const KernelFunction *kernelCall, const KernelSubFunction *ke switch (mobj->getType()) { case SEG_TYPE_HUNK: { - HunkTable *ht = (HunkTable *)mobj; + HunkTable &ht = *(HunkTable *)mobj; int index = argv[parmNr].getOffset(); - if (ht->isValidEntry(index)) { + if (ht.isValidEntry(index)) { // NOTE: This ", deleted" isn't as useful as it could // be because it prints the status _after_ the kernel // call. - debugN(" ('%s' hunk%s)", ht->_table[index].type, ht->_table[index].mem ? "" : ", deleted"); + debugN(" ('%s' hunk%s)", ht[index].type, ht[index].mem ? "" : ", deleted"); } else debugN(" (INVALID hunk ref)"); break; |