ASYLUM: original loops through the objects in reverse

This commit is contained in:
alxpnv 2021-04-07 12:26:51 +03:00 committed by Eugene Sandulenko
parent 982bd7c359
commit cc41cfb459
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -1495,7 +1495,7 @@ int32 Scene::hitTestObject() {
const Common::Point pt = getCursor()->position();
for (uint32 i = 0; i < _ws->objects.size(); i++) {
for (int32 i = _ws->objects.size() - 1; i >= 0; i--) {
Object *object = _ws->objects[i];
if (object->isOnScreen() && object->actionType)
if (hitTestPixel(object->getResourceId(),