diff options
author | Filippos Karapetis | 2010-01-27 23:43:23 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-01-27 23:43:23 +0000 |
commit | 2974ead245ab0d1fbe1d190ad59def806f5a6f1d (patch) | |
tree | 2529763c8e82cab63c8fd5f179b7307e5fced824 /engines/sci | |
parent | 705910f1221e707e2f7e9815277c8b1d8aca9aae (diff) | |
download | scummvm-rg350-2974ead245ab0d1fbe1d190ad59def806f5a6f1d.tar.gz scummvm-rg350-2974ead245ab0d1fbe1d190ad59def806f5a6f1d.tar.bz2 scummvm-rg350-2974ead245ab0d1fbe1d190ad59def806f5a6f1d.zip |
Corrected assert inside load_script. Fixes loading in SQ4CD
svn-id: r47617
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/engine/savegame.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index bf8241ee86..52f96ba9a2 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -688,7 +688,7 @@ static void load_script(EngineState *s, Script *scr) { Resource *script = s->resMan->findResource(ResourceId(kResourceTypeScript, scr->_nr), 0); assert(script != 0); - assert(scr->_bufSize <= script->size); + assert(scr->_bufSize >= script->size); memcpy(scr->_buf, script->data, script->size); if (getSciVersion() >= SCI_VERSION_1_1) { |