aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/savegame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
-rw-r--r--engines/sci/engine/savegame.cpp2
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) {