aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/scriptdebug.cpp
diff options
context:
space:
mode:
authorMax Horn2009-04-27 12:31:27 +0000
committerMax Horn2009-04-27 12:31:27 +0000
commitb5e9d79e157d4460f4b9038d19bfc31cf279c5f0 (patch)
tree5b2e0287ebacc48c9fe5462c728e33ab57361f84 /engines/sci/engine/scriptdebug.cpp
parent462e3bd49da49efd2bbee611467e8940c6e41177 (diff)
downloadscummvm-rg350-b5e9d79e157d4460f4b9038d19bfc31cf279c5f0.tar.gz
scummvm-rg350-b5e9d79e157d4460f4b9038d19bfc31cf279c5f0.tar.bz2
scummvm-rg350-b5e9d79e157d4460f4b9038d19bfc31cf279c5f0.zip
SCI: Turned classtable into a Common::Array<Class>
svn-id: r40161
Diffstat (limited to 'engines/sci/engine/scriptdebug.cpp')
-rw-r--r--engines/sci/engine/scriptdebug.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp
index 14fa9d54d0..27c41795ec 100644
--- a/engines/sci/engine/scriptdebug.cpp
+++ b/engines/sci/engine/scriptdebug.cpp
@@ -83,8 +83,8 @@ int _kdebug_cheap_soundcue_hack = -1;
char inputbuf[256] = "";
#define LOOKUP_SPECIES(species) (\
- (species >= 1000) ? species : *(s->classtable[species].scriptposp) \
- + s->classtable[species].class_offset)
+ (species >= 1000) ? species : *(s->_classtable[species].scriptposp) \
+ + s->_classtable[species].class_offset)
const char *_debug_get_input_default() {
char newinpbuf[256];
@@ -830,17 +830,15 @@ int c_sim_parse(EngineState *s) {
}
int c_classtable(EngineState *s) {
- int i;
-
if (!_debugstate_valid) {
sciprintf("Not in debug state\n");
return 1;
}
sciprintf("Available classes:\n");
- for (i = 0; i < s->classtable_size; i++)
- if (s->classtable[i].reg.segment)
- sciprintf(" Class 0x%x at "PREG" (script 0x%x)\n", i, PRINT_REG(s->classtable[i].reg), s->classtable[i].script);
+ for (uint i = 0; i < s->_classtable.size(); i++)
+ if (s->_classtable[i].reg.segment)
+ sciprintf(" Class 0x%x at "PREG" (script 0x%x)\n", i, PRINT_REG(s->_classtable[i].reg), s->_classtable[i].script);
return 0;
}