mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 19:45:07 +00:00
DIRECTOR: Fix crash on mouse move in lingotests
This commit is contained in:
parent
4c7593659b
commit
3bf6f79a3e
@ -518,6 +518,9 @@ void Score::renderSprites(uint16 frameId, RenderMode mode) {
|
||||
void Score::renderCursor(Common::Point pos) {
|
||||
uint spriteId = 0;
|
||||
|
||||
if (_channels.empty())
|
||||
return;
|
||||
|
||||
for (int i = _channels.size() - 1; i >=0; i--)
|
||||
if (_channels[i]->isMouseIn(pos) && !_channels[i]->_cursor.isEmpty())
|
||||
spriteId = i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user