DIRECTOR: Fix crash on mouse move in lingotests

This commit is contained in:
djsrv 2020-08-21 21:13:32 -04:00
parent 4c7593659b
commit 3bf6f79a3e

View File

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