From a47cc783e47b8153dea8fa33140805ff1ee3f32b Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 29 Oct 2005 04:52:26 +0000 Subject: Only applies to SCUMM 3/4. Fixes mask issues when lifting crate in airport. Fixes masking issues in digdemo (Bug #1288652). svn-id: r19360 --- scumm/object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3