aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2017-03-28 22:02:54 -0400
committerPaul Gilbert2017-03-28 22:02:54 -0400
commitb2cddceae69c677fcaaa3f1e447ff2bb05fd477a (patch)
tree30bedff70d1edf61aa661f979a7e36f0358d12de /engines
parentef66debb7d24b4465c59673b81024c40956dd1c3 (diff)
downloadscummvm-rg350-b2cddceae69c677fcaaa3f1e447ff2bb05fd477a.tar.gz
scummvm-rg350-b2cddceae69c677fcaaa3f1e447ff2bb05fd477a.tar.bz2
scummvm-rg350-b2cddceae69c677fcaaa3f1e447ff2bb05fd477a.zip
TITANIC: Add missing state reset in CStarView fn18
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/star_control/star_view.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/titanic/star_control/star_view.cpp b/engines/titanic/star_control/star_view.cpp
index 92a722d815..da4ea20327 100644
--- a/engines/titanic/star_control/star_view.cpp
+++ b/engines/titanic/star_control/star_view.cpp
@@ -424,13 +424,14 @@ void CStarView::fn18(CStarControlSub12 *sub12) {
if (_videoSurface2) {
int oldVal = _starField->get54();
- _starField->set4(false);
+ bool old4 = _starField->set4(false);
_videoSurface2->clear();
_videoSurface2->lock();
_starField->render(_videoSurface2, sub12);
_videoSurface2->unlock();
+ _starField->set4(old4);
_starField->set54(oldVal);
_starField->fn6(_videoSurface2, sub12);
}