From 01cf8f20ae1e6114b75c1d8ba78eb1f660422822 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 14 Jun 2005 00:31:54 +0000 Subject: Fix dock bug svn-id: r18384 --- saga/actor.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'saga') 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; -- cgit v1.2.3