aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/video
diff options
context:
space:
mode:
authorTobia Tesan2014-11-05 19:28:42 +0100
committerTobia Tesan2014-11-05 19:28:42 +0100
commit215ac157e6f694327d5de0ec46a6fc1eabbf4719 (patch)
treeb6e0da0c63284101d0c1b9acbe110853c21f607d /engines/wintermute/video
parent0a2c1a809f1335f2d259fa7e3070405232687b00 (diff)
downloadscummvm-rg350-215ac157e6f694327d5de0ec46a6fc1eabbf4719.tar.gz
scummvm-rg350-215ac157e6f694327d5de0ec46a6fc1eabbf4719.tar.bz2
scummvm-rg350-215ac157e6f694327d5de0ec46a6fc1eabbf4719.zip
WINTERMUTE: Declare vars inside appropriate block in loadSubtitles
Diffstat (limited to 'engines/wintermute/video')
-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;