aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/gob/mult_v2.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/gob/mult_v2.cpp b/engines/gob/mult_v2.cpp
index 64b9d19e33..f6dddec71e 100644
--- a/engines/gob/mult_v2.cpp
+++ b/engines/gob/mult_v2.cpp
@@ -754,8 +754,10 @@ void Mult_v2::newCycleAnim(Mult_Object &animObj) {
case 1:
animData.frame = 0;
- *(animObj.pPosX) += animLayer->animDeltaX;
- *(animObj.pPosY) += animLayer->animDeltaY;
+ if (animLayer) {
+ *(animObj.pPosX) += animLayer->animDeltaX;
+ *(animObj.pPosY) += animLayer->animDeltaY;
+ }
break;
case 2: