aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/fullpipe/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/sound.cpp b/engines/fullpipe/sound.cpp
index b1d0a26cf5..31e35808f9 100644
--- a/engines/fullpipe/sound.cpp
+++ b/engines/fullpipe/sound.cpp
@@ -332,7 +332,7 @@ int FullpipeEngine::getSceneTrack() {
int track = num + 1;
- if (!_trackName[num + 2])
+ if (num + 2 >= (int)_trackName.size())
track = 0;
_musicGameVar->setSubVarAsInt("TRACKS", track);