diff options
author | James Brown | 2003-01-16 17:37:34 +0000 |
---|---|---|
committer | James Brown | 2003-01-16 17:37:34 +0000 |
commit | 4e07c1bb91d2fc2a2ab7156b5a252591d3ac1848 (patch) | |
tree | 9377fc2d8931c6afc7ef024305ae040db20a9e87 /scumm/gfx.cpp | |
parent | d5a266f2ca7ca39b31286d8f34eae26a2919ba8e (diff) | |
download | scummvm-rg350-4e07c1bb91d2fc2a2ab7156b5a252591d3ac1848.tar.gz scummvm-rg350-4e07c1bb91d2fc2a2ab7156b5a252591d3ac1848.tar.bz2 scummvm-rg350-4e07c1bb91d2fc2a2ab7156b5a252591d3ac1848.zip |
Patch 668634: Actor iteration fix
svn-id: r6484
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r-- | scumm/gfx.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 9355c2581b..6c7a897b46 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -1820,7 +1820,8 @@ void Scumm::setCameraFollows(Actor *a) if (t - _screenStartStrip < camera._leftTrigger || t - _screenStartStrip > camera._rightTrigger) setCameraAt(a->x, 0); - for (i = 1, a = getFirstActor(); ++a, i < NUM_ACTORS; i++) { + for (i = 1; i < NUM_ACTORS; i++) { + a = derefActor(i); if (a->isInCurrentRoom()) a->needRedraw = true; } |