From 3134b2d2308ee122dc23869392133cb560195cb3 Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Wed, 20 Jun 2018 14:25:29 +0300 Subject: PINK: fix wrong deleting of conflicting contexts --- engines/pink/objects/sequences/sequencer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/pink/objects') diff --git a/engines/pink/objects/sequences/sequencer.cpp b/engines/pink/objects/sequences/sequencer.cpp index b10d41437e..9ba10aa449 100644 --- a/engines/pink/objects/sequences/sequencer.cpp +++ b/engines/pink/objects/sequences/sequencer.cpp @@ -70,7 +70,7 @@ void Sequencer::authorSequence(Sequence *sequence, bool loadingSave) { SequenceContext *context = new SequenceContext(sequence); SequenceContext *confilct; - while(confilct = findConfilictingContextWith(context)) + while((confilct = findConfilictingContextWith(context)) != nullptr) confilct->getSequence()->forceEnd(); _context = context; -- cgit v1.2.3