mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 21:03:31 +00:00
TWP: Fix impossible to pickup some objects
This commit is contained in:
parent
4ed379403a
commit
866a7db57f
@ -1374,7 +1374,7 @@ struct GetByZorder {
|
||||
GetByZorder(Common::SharedPtr<Object> &result) : _result(result) { result = nullptr; }
|
||||
|
||||
bool operator()(Common::SharedPtr<Object> obj) {
|
||||
if (obj->_node->getZSort() < _zOrder) {
|
||||
if (obj->_node->getZSort() <= _zOrder) {
|
||||
_result = obj;
|
||||
_zOrder = obj->_node->getZSort();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user