aboutsummaryrefslogtreecommitdiff
path: root/engines/composer
diff options
context:
space:
mode:
authorAlyssa Milburn2011-07-18 17:04:24 +0200
committerAlyssa Milburn2011-07-18 17:04:24 +0200
commit1e453e23058642b0ac1e16a4c65363763790d1ed (patch)
treec6ad815c6f80b94f2c481d6877dd6e8b7b51e5a4 /engines/composer
parent8bf558a299096f385630b7ee148dd509005e983b (diff)
downloadscummvm-rg350-1e453e23058642b0ac1e16a4c65363763790d1ed.tar.gz
scummvm-rg350-1e453e23058642b0ac1e16a4c65363763790d1ed.tar.bz2
scummvm-rg350-1e453e23058642b0ac1e16a4c65363763790d1ed.zip
COMPOSER: Fix the search direction in getButtonFor.
Diffstat (limited to 'engines/composer')
-rw-r--r--engines/composer/composer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/composer/composer.cpp b/engines/composer/composer.cpp
index 74696e81b1..6e199da266 100644
--- a/engines/composer/composer.cpp
+++ b/engines/composer/composer.cpp
@@ -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;