aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwhiterandrek2018-06-20 14:25:29 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit3134b2d2308ee122dc23869392133cb560195cb3 (patch)
tree1fb139e805620070be69865f397ea3c76451c236
parent6a2dc6fa0f4320c1aadc273b5fa17de34c6495f6 (diff)
downloadscummvm-rg350-3134b2d2308ee122dc23869392133cb560195cb3.tar.gz
scummvm-rg350-3134b2d2308ee122dc23869392133cb560195cb3.tar.bz2
scummvm-rg350-3134b2d2308ee122dc23869392133cb560195cb3.zip
PINK: fix wrong deleting of conflicting contexts
-rw-r--r--engines/pink/objects/sequences/sequencer.cpp2
1 files changed, 1 insertions, 1 deletions
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;