aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorEugene Sandulenko2005-06-14 00:31:54 +0000
committerEugene Sandulenko2005-06-14 00:31:54 +0000
commit01cf8f20ae1e6114b75c1d8ba78eb1f660422822 (patch)
treeee9d3b947900ae0624dd49e430dfce043e7c4521 /saga
parent4f2cfd5feba4ce07a94c151c740cc6ba785c3932 (diff)
downloadscummvm-rg350-01cf8f20ae1e6114b75c1d8ba78eb1f660422822.tar.gz
scummvm-rg350-01cf8f20ae1e6114b75c1d8ba78eb1f660422822.tar.bz2
scummvm-rg350-01cf8f20ae1e6114b75c1d8ba78eb1f660422822.zip
Fix dock bug
svn-id: r18384
Diffstat (limited to 'saga')
-rw-r--r--saga/actor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/saga/actor.cpp b/saga/actor.cpp
index bd0d2ea30a..f0af7df1be 100644
--- a/saga/actor.cpp
+++ b/saga/actor.cpp
@@ -603,6 +603,10 @@ void Actor::updateActorsScene(int actorsEntrance) {
assert(_protagonist);
if ((actorsEntrance >= 0) && (_vm->_scene->_entryList.entryListCount > 0)) {
+ if (_vm->_scene->_entryList.entryListCount <= actorsEntrance) {
+ actorsEntrance = 0; //OCEAN bug
+ }
+
sceneEntry = _vm->_scene->_entryList.getEntry(actorsEntrance);
if (_vm->_scene->getFlags() & kSceneFlagISO) {
_protagonist->location = sceneEntry->location;