Skip to content

Commit

Permalink
TITANIC: Workaround original bug in CStarView fn18
Browse files Browse the repository at this point in the history
The original accessed the raw pixels ptr of a video surface after
it had been unlocked
  • Loading branch information
dreammaster committed Mar 29, 2017
1 parent b2cddce commit 581b2c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/titanic/star_control/star_view.cpp
Expand Up @@ -429,11 +429,11 @@ void CStarView::fn18(CStarControlSub12 *sub12) {
_videoSurface2->clear();
_videoSurface2->lock();
_starField->render(_videoSurface2, sub12);
_videoSurface2->unlock();

_starField->set4(old4);
_starField->set54(oldVal);
_starField->fn6(_videoSurface2, sub12);
_videoSurface2->unlock();
}
}
}
Expand Down

0 comments on commit 581b2c8

Please sign in to comment.