aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/video/video_subtitler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/wintermute/video/video_subtitler.cpp b/engines/wintermute/video/video_subtitler.cpp
index 52bae27d2d..e3127d1c5e 100644
--- a/engines/wintermute/video/video_subtitler.cpp
+++ b/engines/wintermute/video/video_subtitler.cpp
@@ -85,7 +85,6 @@ bool VideoSubtitler::loadSubtitles(const Common::String &filename, const Common:
file->read(buffer, fileSize);
- int start, end;
bool inToken;
char *tokenStart = 0;
int tokenLength = 0;
@@ -98,6 +97,8 @@ bool VideoSubtitler::loadSubtitles(const Common::String &filename, const Common:
* {StartFrame}{EndFrame} FirstLine | SecondLine \n
*/
while (pos < fileSize) {
+ int start, end;
+
start = end = -1;
inToken = false;
tokenPos = -1;