diff options
author | Littleboy | 2012-08-21 23:16:52 -0400 |
---|---|---|
committer | Littleboy | 2012-08-27 21:49:40 -0400 |
commit | 275aded0b0e485eead8d5bdac48d9c8dc1a6ef9c (patch) | |
tree | f2730b34374edec109ada9671295da5563781f0d /engines/lastexpress/data/subtitle.cpp | |
parent | bc4e10dabca5b76283eb6fb431702ccd92a001c0 (diff) | |
download | scummvm-rg350-275aded0b0e485eead8d5bdac48d9c8dc1a6ef9c.tar.gz scummvm-rg350-275aded0b0e485eead8d5bdac48d9c8dc1a6ef9c.tar.bz2 scummvm-rg350-275aded0b0e485eead8d5bdac48d9c8dc1a6ef9c.zip |
LASTEXPRESS: Remove unnecessary casts
Diffstat (limited to 'engines/lastexpress/data/subtitle.cpp')
-rw-r--r-- | engines/lastexpress/data/subtitle.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lastexpress/data/subtitle.cpp b/engines/lastexpress/data/subtitle.cpp index a9a8284588..4d19c02aa7 100644 --- a/engines/lastexpress/data/subtitle.cpp +++ b/engines/lastexpress/data/subtitle.cpp @@ -210,10 +210,10 @@ void SubtitleManager::setTime(uint16 time) { _currentIndex = -1; // Find the appropriate line to show - for (int16 i = 0; i < (int16)_subtitles.size(); i++) { + for (uint i = 0; i < _subtitles.size(); i++) { if ((time >= _subtitles[i]->getTimeStart()) && (time <= _subtitles[i]->getTimeStop())) { // Keep the index of the line to show - _currentIndex = i; + _currentIndex = (int16)i; return; } } @@ -237,7 +237,7 @@ Common::Rect SubtitleManager::draw(Graphics::Surface *surface) { // Draw the current line assert(_currentIndex >= 0 && _currentIndex < (int16)_subtitles.size()); - return _subtitles[_currentIndex]->draw(surface, _font); + return _subtitles[(uint16)_currentIndex]->draw(surface, _font); } } // End of namespace LastExpress |