diff options
author | whiterandrek | 2018-05-22 07:01:54 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | ea5c09341013805e3be3a40d96a54baa7548b5d0 (patch) | |
tree | 2bea7dd9f013166030c5f418a5ef9361a7cce131 /engines/pink/objects/sequences | |
parent | c06452594f13c93fe2d21f61e04a99d430ced65b (diff) | |
download | scummvm-rg350-ea5c09341013805e3be3a40d96a54baa7548b5d0.tar.gz scummvm-rg350-ea5c09341013805e3be3a40d96a54baa7548b5d0.tar.bz2 scummvm-rg350-ea5c09341013805e3be3a40d96a54baa7548b5d0.zip |
PINK: remove lambda functions
PINK: remove lambda functions
PINK: remove >> << operators
Diffstat (limited to 'engines/pink/objects/sequences')
-rw-r--r-- | engines/pink/objects/sequences/sequencer.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/pink/objects/sequences/sequencer.cpp b/engines/pink/objects/sequences/sequencer.cpp index 37cd03cd37..5644aa8f25 100644 --- a/engines/pink/objects/sequences/sequencer.cpp +++ b/engines/pink/objects/sequences/sequencer.cpp @@ -49,10 +49,11 @@ void Sequencer::deserialize(Archive &archive) { } Sequence *Sequencer::findSequence(const Common::String &name) { - return *Common::find_if(_sequences.begin(), _sequences.end(), [&name] - (Sequence* sequence) { - return name == sequence->getName(); - }); + for (uint i = 0; i < _sequences.size(); ++i) { + if (_sequences[i]->getName() == name) + return _sequences[i]; + } + return nullptr; } void Sequencer::authorSequence(Sequence *sequence, bool unk) { |