aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control/surface_fader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/star_control/surface_fader.cpp')
-rw-r--r--engines/titanic/star_control/surface_fader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/star_control/surface_fader.cpp b/engines/titanic/star_control/surface_fader.cpp
index 7cc39dc429..e2ef828574 100644
--- a/engines/titanic/star_control/surface_fader.cpp
+++ b/engines/titanic/star_control/surface_fader.cpp
@@ -62,7 +62,7 @@ bool CSurfaceFader::setupSurface(CScreenManager *screenManager, CVideoSurface *s
}
CVideoSurface *CSurfaceFader::draw(CScreenManager *screenManager, CVideoSurface *srcSurface) {
- if (_index == -1 || _index >= _count)
+ if (_index < 0 || _index >= _count)
return srcSurface;
// On the first iteration, set up a temporary surface