COMPOSER: Fix the search direction in getButtonFor.

This commit is contained in:
Alyssa Milburn 2011-07-18 17:04:24 +02:00
parent 8bf558a299
commit 1e453e2305

View File

@ -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;