aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2005-10-29 04:52:26 +0000
committerTravis Howell2005-10-29 04:52:26 +0000
commita47cc783e47b8153dea8fa33140805ff1ee3f32b (patch)
treeba40379d4ab56ec7e1b8199f658bf50f9a254423
parent9845fab51b2e58075d2b3c8a614147b50f68c362 (diff)
downloadscummvm-rg350-a47cc783e47b8153dea8fa33140805ff1ee3f32b.tar.gz
scummvm-rg350-a47cc783e47b8153dea8fa33140805ff1ee3f32b.tar.bz2
scummvm-rg350-a47cc783e47b8153dea8fa33140805ff1ee3f32b.zip
Only applies to SCUMM 3/4.
Fixes mask issues when lifting crate in airport. Fixes masking issues in digdemo (Bug #1288652). svn-id: r19360
-rw-r--r--scumm/object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp
index 1ed1b88655..2212f23e88 100644
--- a/scumm/object.cpp
+++ b/scumm/object.cpp
@@ -110,7 +110,7 @@ void ScummEngine::putClass(int obj, int cls, bool set) {
else
_classData[obj] &= ~(1 << (cls - 1));
- if (1 <= obj && obj < _numActors) {
+ if (_version <= 4 && obj >= 1 && obj < _numActors) {
_actors[obj].classChanged(cls, set);
}
}