aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorwhiterandrek2018-05-12 18:18:59 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit362db13d172eee5dedcd35aab3ea537dcc4bae5c (patch)
tree6d7cade6e47bcf65e17000f57322bb89c961fa51 /engines
parentd83022b60754698054dc8dcb675ceee36f171bf8 (diff)
downloadscummvm-rg350-362db13d172eee5dedcd35aab3ea537dcc4bae5c.tar.gz
scummvm-rg350-362db13d172eee5dedcd35aab3ea537dcc4bae5c.tar.bz2
scummvm-rg350-362db13d172eee5dedcd35aab3ea537dcc4bae5c.zip
PINK: fixed SideEffectLocation
Diffstat (limited to 'engines')
-rw-r--r--engines/pink/objects/side_effect.cpp4
1 files changed, 2 insertions, 2 deletions
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() {