aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/celobj32.h
diff options
context:
space:
mode:
authorColin Snover2016-03-18 13:08:37 -0500
committerColin Snover2016-03-18 13:08:37 -0500
commite25d928a9cb82d458c7f592ec81576f0d57d8eca (patch)
tree6fc1c40adc8bebf6174fcc49f3514d576ae0a1b6 /engines/sci/graphics/celobj32.h
parent856f3ae6489b3f9aec62043c58c3961baf619f16 (diff)
downloadscummvm-rg350-e25d928a9cb82d458c7f592ec81576f0d57d8eca.tar.gz
scummvm-rg350-e25d928a9cb82d458c7f592ec81576f0d57d8eca.tar.bz2
scummvm-rg350-e25d928a9cb82d458c7f592ec81576f0d57d8eca.zip
SCI32: Fix crashes in kIsOnMe caused by stale CelObjs
Diffstat (limited to 'engines/sci/graphics/celobj32.h')
-rw-r--r--engines/sci/graphics/celobj32.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/graphics/celobj32.h b/engines/sci/graphics/celobj32.h
index 600ae82d32..0bb4b03ae2 100644
--- a/engines/sci/graphics/celobj32.h
+++ b/engines/sci/graphics/celobj32.h
@@ -104,6 +104,10 @@ struct CelInfo32 {
bitmap == other.bitmap
);
}
+
+ inline bool operator!=(const CelInfo32 &other) {
+ return !(*this == other);
+ }
};
class CelObj;