aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/scriptdebug.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2016-03-23 19:00:12 +0100
committerJohannes Schickel2016-03-25 01:15:26 +0100
commit1c6112e121c6a70df965d6cba1b382d1a3cdbc9c (patch)
tree2be2cb3c1d886247d08182c65768b815f9e3eff2 /engines/sci/engine/scriptdebug.cpp
parent77b5ce075a70f2f9c835fa085194a5a941f26459 (diff)
downloadscummvm-rg350-1c6112e121c6a70df965d6cba1b382d1a3cdbc9c.tar.gz
scummvm-rg350-1c6112e121c6a70df965d6cba1b382d1a3cdbc9c.tar.bz2
scummvm-rg350-1c6112e121c6a70df965d6cba1b382d1a3cdbc9c.zip
SCI: Introduce accessors for SegmentObjTable entries.
This makes code not use _table directly whenever possible. An exception is the save game code which is not easy to adapt due to design deficiencies.
Diffstat (limited to 'engines/sci/engine/scriptdebug.cpp')
-rw-r--r--engines/sci/engine/scriptdebug.cpp6
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;