aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/console.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2011-11-05 02:53:08 +0200
committerFilippos Karapetis2011-11-05 03:00:42 +0200
commit267c6f1756c9582b8bd9534334c7f264a2400929 (patch)
tree3371fa3b24dc20abb4145f6e87291cdcf0e4b955 /engines/sci/console.cpp
parentd70d6c4c50942ec3679fce07ff6045b5d18ed9a1 (diff)
downloadscummvm-rg350-267c6f1756c9582b8bd9534334c7f264a2400929.tar.gz
scummvm-rg350-267c6f1756c9582b8bd9534334c7f264a2400929.tar.bz2
scummvm-rg350-267c6f1756c9582b8bd9534334c7f264a2400929.zip
SCI: Made more fields of the Script class private. Some cleanup.
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r--engines/sci/console.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index a44c661561..664fa6747b 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -1876,8 +1876,8 @@ bool Console::segmentInfo(int nr) {
DebugPrintf(" Synonyms: %4d\n", scr->getSynonymsNr());
- if (scr->_localsBlock)
- DebugPrintf(" Locals : %4d in segment 0x%x\n", scr->_localsBlock->_locals.size(), scr->_localsSegment);
+ if (scr->getLocalsCount() > 0)
+ DebugPrintf(" Locals : %4d in segment 0x%x\n", scr->getLocalsCount(), scr->getLocalsSegment());
else
DebugPrintf(" Locals : none\n");