diff options
author | Tobia Tesan | 2014-11-05 19:28:42 +0100 |
---|---|---|
committer | Tobia Tesan | 2014-11-05 19:28:42 +0100 |
commit | 215ac157e6f694327d5de0ec46a6fc1eabbf4719 (patch) | |
tree | b6e0da0c63284101d0c1b9acbe110853c21f607d /engines | |
parent | 0a2c1a809f1335f2d259fa7e3070405232687b00 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/wintermute/video/video_subtitler.cpp | 3 |
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; |