diff options
author | Max Horn | 2009-09-16 23:32:27 +0000 |
---|---|---|
committer | Max Horn | 2009-09-16 23:32:27 +0000 |
commit | a277123f54c7dd6f6d784501830b4e8975d47c27 (patch) | |
tree | f091c9c5e0f3160e876a70c8af9c162460ced977 /engines/sci/engine/kscripts.cpp | |
parent | 1b75a1825ede80a21b2cac65d7b574342575dc0d (diff) | |
download | scummvm-rg350-a277123f54c7dd6f6d784501830b4e8975d47c27.tar.gz scummvm-rg350-a277123f54c7dd6f6d784501830b4e8975d47c27.tar.bz2 scummvm-rg350-a277123f54c7dd6f6d784501830b4e8975d47c27.zip |
SCI: Rename Script class members, change Script from struct to class
svn-id: r44126
Diffstat (limited to 'engines/sci/engine/kscripts.cpp')
-rw-r--r-- | engines/sci/engine/kscripts.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/kscripts.cpp b/engines/sci/engine/kscripts.cpp index d0d34caf03..f3689a6025 100644 --- a/engines/sci/engine/kscripts.cpp +++ b/engines/sci/engine/kscripts.cpp @@ -272,14 +272,14 @@ reg_t kScriptID(EngineState *s, int, int argc, reg_t *argv) { scr = s->segMan->getScript(scriptSeg); - if (!scr->exports_nr) { + if (!scr->_numExports) { // FIXME: Is this fatal? This occurs in SQ4CD warning("Script 0x%x does not have a dispatch table", script); return NULL_REG; } - if (index > scr->exports_nr) { - error("Dispatch index too big: %d > %d", index, scr->exports_nr); + if (index > scr->_numExports) { + error("Dispatch index too big: %d > %d", index, scr->_numExports); return NULL_REG; } |