mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 09:21:08 +00:00
COMPOSER: Fix the search direction in getButtonFor.
This commit is contained in:
parent
8bf558a299
commit
1e453e2305
@ -672,7 +672,7 @@ const Sprite *ComposerEngine::getSpriteAtPos(const Common::Point &pos) {
|
||||
}
|
||||
|
||||
const Button *ComposerEngine::getButtonFor(const Sprite *sprite, const Common::Point &pos) {
|
||||
for (Common::List<Button>::iterator i = _buttons.begin(); i != _buttons.end(); i++) {
|
||||
for (Common::List<Button>::iterator i = _buttons.reverse_begin(); i != _buttons.end(); --i) {
|
||||
if (!i->_active)
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user