diff options
author | Tobia Tesan | 2014-10-15 20:35:46 +0200 |
---|---|---|
committer | Tobia Tesan | 2014-10-15 21:36:44 +0200 |
commit | 0475fd1a5c845fe785184bafa42b9302c814b654 (patch) | |
tree | 429fc7b4427540b2c739bcb6c6e58c1b3c143ae9 /engines/wintermute | |
parent | 621a068c0065783bba0430f57b71112d7e42a5a9 (diff) | |
download | scummvm-rg350-0475fd1a5c845fe785184bafa42b9302c814b654.tar.gz scummvm-rg350-0475fd1a5c845fe785184bafa42b9302c814b654.tar.bz2 scummvm-rg350-0475fd1a5c845fe785184bafa42b9302c814b654.zip |
WINTERMUTE: Declare counters as uint to match Array::size()
Diffstat (limited to 'engines/wintermute')
-rw-r--r-- | engines/wintermute/video/video_subtitler.cpp | 4 | ||||
-rw-r--r-- | engines/wintermute/video/video_subtitler.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/video/video_subtitler.cpp b/engines/wintermute/video/video_subtitler.cpp index 9d0a066c20..3c607ce20d 100644 --- a/engines/wintermute/video/video_subtitler.cpp +++ b/engines/wintermute/video/video_subtitler.cpp @@ -43,7 +43,7 @@ VideoSubtitler::VideoSubtitler(BaseGame *inGame): BaseClass(inGame) { ////////////////////////////////////////////////////////////////////////// VideoSubtitler::~VideoSubtitler(void) { - for (int i = 0; i < _subtitles.size(); i++) { + for (uint i = 0; i < _subtitles.size(); i++) { delete _subtitles[i]; } _subtitles.clear(); @@ -56,7 +56,7 @@ bool VideoSubtitler::loadSubtitles(const char *Filename, const char *subtitleFil return false; } - for (int i = 0; i < _subtitles.size(); i++) { + for (uint i = 0; i < _subtitles.size(); i++) { delete _subtitles[i]; } diff --git a/engines/wintermute/video/video_subtitler.h b/engines/wintermute/video/video_subtitler.h index e42fbeb505..0025f19e84 100644 --- a/engines/wintermute/video/video_subtitler.h +++ b/engines/wintermute/video/video_subtitler.h @@ -40,7 +40,7 @@ public: virtual ~VideoSubtitler(void); bool _showSubtitle; - int _currentSubtitle; + uint _currentSubtitle; bool loadSubtitles(const char *filename, const char *subtitleFile); bool display(); bool update(long frame); |