From ea5c09341013805e3be3a40d96a54baa7548b5d0 Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Tue, 22 May 2018 07:01:54 +0300 Subject: PINK: remove lambda functions PINK: remove lambda functions PINK: remove >> << operators --- engines/pink/objects/sequences/sequencer.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'engines/pink/objects/sequences') 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) { -- cgit v1.2.3