diff options
author | Filippos Karapetis | 2010-06-18 02:23:30 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-06-18 02:23:30 +0000 |
commit | 773f3bf1453b7e4cc55753e8ca882f5346ef5f83 (patch) | |
tree | 76249c213af55e90062d7425b994137bddace0b6 | |
parent | 0eee4e79bf320a2b068a1460613e879751853b17 (diff) | |
download | scummvm-rg350-773f3bf1453b7e4cc55753e8ca882f5346ef5f83.tar.gz scummvm-rg350-773f3bf1453b7e4cc55753e8ca882f5346ef5f83.tar.bz2 scummvm-rg350-773f3bf1453b7e4cc55753e8ca882f5346ef5f83.zip |
Changed another warning into an error. Cleanup
svn-id: r49995
-rw-r--r-- | engines/sci/engine/kscripts.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sci/engine/kscripts.cpp b/engines/sci/engine/kscripts.cpp index 7e33f17f5f..5f552080e3 100644 --- a/engines/sci/engine/kscripts.cpp +++ b/engines/sci/engine/kscripts.cpp @@ -66,6 +66,7 @@ reg_t kLock(EngineState *s, int argc, reg_t *argv) { if (id.getType() == kResourceTypeInvalid) warning("[resMan] Attempt to unlock resource %i of invalid type %i", id.getNumber(), type); else + // Happens in CD games (e.g. LSL6CD) with the message resource warning("[resMan] Attempt to unlock non-existant resource %s", id.toString().c_str()); } break; @@ -163,7 +164,6 @@ reg_t kDisposeClone(EngineState *s, int argc, reg_t *argv) { } if (!victim_obj->isClone()) { - //warning("Attempt to dispose something other than a clone at %04x", offset); // SCI silently ignores this behaviour; some games actually depend on it return s->r_acc; } @@ -193,9 +193,10 @@ reg_t kScriptID(EngineState *s, int argc, reg_t *argv) { // and this call is probably used to load them in memory, ignoring // the return value. If only one argument is passed, this call is done // only to load the script in memory. Thus, don't show any warning, - // as no return value is expected + // as no return value is expected. If an export is requested, then + // it will most certainly fail with OOB access. if (argc == 2) - warning("Script 0x%x does not have a dispatch table and export %d " + error("Script 0x%x does not have a dispatch table and export %d " "was requested from it", script, index); return NULL_REG; } |