aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/goblin.cpp
diff options
context:
space:
mode:
authorSven Hesse2006-12-14 19:07:43 +0000
committerSven Hesse2006-12-14 19:07:43 +0000
commiteb012d811072b43a4af475b4e7f069924e2eca10 (patch)
treeb641d4d7bace74e9d7131a8a8243dc93394eb680 /engines/gob/goblin.cpp
parentcf30537765750ac3d9372f4fe396bb12f33686c7 (diff)
downloadscummvm-rg350-eb012d811072b43a4af475b4e7f069924e2eca10.tar.gz
scummvm-rg350-eb012d811072b43a4af475b4e7f069924e2eca10.tar.bz2
scummvm-rg350-eb012d811072b43a4af475b4e7f069924e2eca10.zip
Smashed the wizard's house bug
svn-id: r24850
Diffstat (limited to 'engines/gob/goblin.cpp')
-rw-r--r--engines/gob/goblin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/gob/goblin.cpp b/engines/gob/goblin.cpp
index b6925d0358..24842b6541 100644
--- a/engines/gob/goblin.cpp
+++ b/engines/gob/goblin.cpp
@@ -2036,6 +2036,9 @@ void Goblin::sub_11984(Mult::Mult_Object *obj) {
animData->field_15--;
}
+ if (animData->frame < framesCount)
+ return;
+
if (animData->field_F != -1) {
animData->frame = 0;
animData->state = animData->field_F;