diff options
Diffstat (limited to 'engines/toltecs/sprite.cpp')
-rw-r--r-- | engines/toltecs/sprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/toltecs/sprite.cpp b/engines/toltecs/sprite.cpp index b9f8ffe0a4..3327f04bdd 100644 --- a/engines/toltecs/sprite.cpp +++ b/engines/toltecs/sprite.cpp @@ -209,7 +209,7 @@ void Screen::addDrawRequest(const DrawRequest &drawRequest) { sprite.baseColor = drawRequest.baseColor; sprite.x = drawRequest.x; sprite.y = drawRequest.y; - sprite.ybottom = drawRequest.y; + sprite.priority = drawRequest.y; sprite.resIndex = drawRequest.resIndex; spriteData = _vm->_res->load(drawRequest.resIndex); @@ -393,7 +393,7 @@ void Screen::addDrawRequest(const DrawRequest &drawRequest) { // Add sprite sorted by priority Common::List<SpriteDrawItem>::iterator iter = _spriteDrawList.begin(); - while (iter != _spriteDrawList.end() && (*iter).ybottom <= sprite.ybottom) { + while (iter != _spriteDrawList.end() && (*iter).priority <= sprite.priority) { iter++; } _spriteDrawList.insert(iter, sprite); |