diff options
author | Willem Jan Palenstijn | 2016-02-21 12:52:25 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2016-02-21 12:52:25 +0100 |
commit | 26a5efe6e84559ebbbb5fe109a4e18eec22b938a (patch) | |
tree | 926d141560a3f4f189009d1db15d762b5a05ff38 | |
parent | 3c3b7ec13d0c4fea3b335c989033042544ab39eb (diff) | |
download | scummvm-rg350-26a5efe6e84559ebbbb5fe109a4e18eec22b938a.tar.gz scummvm-rg350-26a5efe6e84559ebbbb5fe109a4e18eec22b938a.tar.bz2 scummvm-rg350-26a5efe6e84559ebbbb5fe109a4e18eec22b938a.zip |
SCI: Fix redrawAll updating visiblePlanes
It was comparing ScreenItem*'s directly, instead of objects.
-rw-r--r-- | engines/sci/graphics/plane32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/plane32.cpp b/engines/sci/graphics/plane32.cpp index 40cb56522f..b7dca1451a 100644 --- a/engines/sci/graphics/plane32.cpp +++ b/engines/sci/graphics/plane32.cpp @@ -476,7 +476,7 @@ void Plane::decrementScreenItemArrayCounts(Plane *visiblePlane, const bool force ( forceUpdate && visiblePlane != nullptr && - Common::find(visiblePlane->_screenItemList.begin(), visiblePlane->_screenItemList.end(), item) != visiblePlane->_screenItemList.end() + visiblePlane->_screenItemList.findByObject(item->_object) != 0 ) ) { *visiblePlane->_screenItemList[i] = *_screenItemList[i]; |