diff options
author | Alyssa Milburn | 2011-11-20 16:30:33 +0100 |
---|---|---|
committer | Alyssa Milburn | 2011-11-20 16:30:33 +0100 |
commit | 40474f0bc65796db591438ef236d0888398d5e65 (patch) | |
tree | 60992ef395b59c0f07b57c579fc84c9f9e7209a7 /engines/mohawk/livingbooks.cpp | |
parent | 98c3f7991ebc68ba8c949893eb2a7afce4a10d4c (diff) | |
download | scummvm-rg350-40474f0bc65796db591438ef236d0888398d5e65.tar.gz scummvm-rg350-40474f0bc65796db591438ef236d0888398d5e65.tar.bz2 scummvm-rg350-40474f0bc65796db591438ef236d0888398d5e65.zip |
MOHAWK: Draw LB items in sorted order.
Diffstat (limited to 'engines/mohawk/livingbooks.cpp')
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 65073bd970..5359c4e0d5 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -593,8 +593,8 @@ void MohawkEngine_LivingBooks::updatePage() { _items[i]->update(); if (_needsRedraw) { - for (uint16 i = 0; i < _items.size(); i++) - _items[i]->draw(); + for (Common::List<LBItem *>::const_iterator i = _orderedItems.reverse_begin(); i != _orderedItems.end(); --i) + (*i)->draw(); _needsRedraw = false; _needsUpdate = true; |