diff options
author | Colin Snover | 2016-03-18 13:08:37 -0500 |
---|---|---|
committer | Colin Snover | 2016-03-18 13:08:37 -0500 |
commit | e25d928a9cb82d458c7f592ec81576f0d57d8eca (patch) | |
tree | 6fc1c40adc8bebf6174fcc49f3514d576ae0a1b6 /engines/sci/graphics/celobj32.h | |
parent | 856f3ae6489b3f9aec62043c58c3961baf619f16 (diff) | |
download | scummvm-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.h | 4 |
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; |