From 362db13d172eee5dedcd35aab3ea537dcc4bae5c Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Sat, 12 May 2018 18:18:59 +0300 Subject: PINK: fixed SideEffectLocation --- engines/pink/objects/side_effect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/pink/objects') diff --git a/engines/pink/objects/side_effect.cpp b/engines/pink/objects/side_effect.cpp index 548a29f12f..7cdb2c9183 100644 --- a/engines/pink/objects/side_effect.cpp +++ b/engines/pink/objects/side_effect.cpp @@ -51,8 +51,8 @@ void SideEffectLocation::deserialize(Archive &archive) { void SideEffectLocation::execute(Actor *actor) { WalkMgr *mgr = actor->getPage()->getWalkMgr(); WalkLocation *location = mgr->findLocation(_location); - assert(location); - mgr->setCurrentWayPoint(location); + if (location) + mgr->setCurrentWayPoint(location); } void SideEffectLocation::toConsole() { -- cgit v1.2.3