diff options
author | stevenhoefel | 2017-02-07 16:08:11 +1100 |
---|---|---|
committer | stevenhoefel | 2017-02-07 16:08:11 +1100 |
commit | 2d8e52771aaa545119990c819ee4e5ddaad85596 (patch) | |
tree | 826d96194ff279ef05fd74344c6d76f6c0c9356f /engines/director/score.cpp | |
parent | f192831c86e603370cc92e9ac846605db9e5fa5f (diff) | |
download | scummvm-rg350-2d8e52771aaa545119990c819ee4e5ddaad85596.tar.gz scummvm-rg350-2d8e52771aaa545119990c819ee4e5ddaad85596.tar.bz2 scummvm-rg350-2d8e52771aaa545119990c819ee4e5ddaad85596.zip |
DIRECTOR: More font alignment and spacing on buttons. Go to frame 0 if no labels.
Diffstat (limited to 'engines/director/score.cpp')
-rw-r--r-- | engines/director/score.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index deff766f72..2a29234bbc 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -743,10 +743,15 @@ void Score::gotoLoop() { // If no marker are to the left of the playback head, the playback head continues to the right. Common::SortedArray<Label *>::iterator i; - for (i = _labels->begin(); i != _labels->end(); ++i) { - if ((*i)->name == _currentLabel) { - _currentFrame = (*i)->number; - return; + if (_labels == NULL) { + _currentFrame = 0; + return; + } else { + for (i = _labels->begin(); i != _labels->end(); ++i) { + if ((*i)->name == _currentLabel) { + _currentFrame = (*i)->number; + return; + } } } } |