diff options
author | Filippos Karapetis | 2012-06-23 21:04:39 +0300 |
---|---|---|
committer | Filippos Karapetis | 2012-06-23 21:45:20 +0300 |
commit | d78ed6f6ad2c27732f1e36759303b0fa9d310190 (patch) | |
tree | a1dc166009281bab58bb36be6561c5490c28d684 /engines | |
parent | f06eb05e8c554a3462a98d18c04d5f5695074b26 (diff) | |
download | scummvm-rg350-d78ed6f6ad2c27732f1e36759303b0fa9d310190.tar.gz scummvm-rg350-d78ed6f6ad2c27732f1e36759303b0fa9d310190.tar.bz2 scummvm-rg350-d78ed6f6ad2c27732f1e36759303b0fa9d310190.zip |
SCI: Remove a duplicate sanity check
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kscripts.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/engines/sci/engine/kscripts.cpp b/engines/sci/engine/kscripts.cpp index c9e94a52a4..2c115be500 100644 --- a/engines/sci/engine/kscripts.cpp +++ b/engines/sci/engine/kscripts.cpp @@ -226,11 +226,6 @@ reg_t kScriptID(EngineState *s, int argc, reg_t *argv) { return NULL_REG; } - if (index > scr->getExportsNr()) { - error("Dispatch index too big: %d > %d", index, scr->getExportsNr()); - return NULL_REG; - } - uint16 address = scr->validateExportFunc(index, true); // Point to the heap for SCI1.1 - SCI2.1 games |