aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2004-09-01 02:41:48 +0000
committerTravis Howell2004-09-01 02:41:48 +0000
commit35bc32625c546683a2f65644d563dff448b3d918 (patch)
tree4e00cb48f1b3a4d31c6730bb8628152aaf07e6b0
parent6962e64fad3644f0d5639aa9fff7fdfe1c408a63 (diff)
downloadscummvm-rg350-35bc32625c546683a2f65644d563dff448b3d918.tar.gz
scummvm-rg350-35bc32625c546683a2f65644d563dff448b3d918.tar.bz2
scummvm-rg350-35bc32625c546683a2f65644d563dff448b3d918.zip
Correct assert
svn-id: r14850
-rw-r--r--scumm/script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index 6287bf416b..6db787bcd0 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -408,7 +408,7 @@ void ScummEngine::getScriptBaseAddress() {
case WIO_FLOBJECT: /* flobject script */
idx = getObjectIndex(ss->number);
_scriptOrgPointer = getResourceAddress(rtFlObject, _objs[idx].fl_object_index);
- assert(idx < _numFlObject);
+ assert(_objs[idx].fl_object_index < _numFlObject);
_lastCodePtr = &_baseFLObject[idx];
break;
default: