aboutsummaryrefslogtreecommitdiff
path: root/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'object.cpp')
-rw-r--r--object.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/object.cpp b/object.cpp
index f27cf9be78..b0aa12687c 100644
--- a/object.cpp
+++ b/object.cpp
@@ -61,6 +61,10 @@ void Scumm::putClass(int obj, int cls, bool set)
_classData[obj] |= (1 << (cls - 1));
else
_classData[obj] &= ~(1 << (cls - 1));
+
+ if (1 <= obj && obj < NUM_ACTORS) {
+ _actors[obj].classChanged(cls, set);
+ }
}
int Scumm::getOwner(int obj)