SCI32: Fix Mac cursor when resource doesn't exist

Fixes Phantasmagoria cursor disappearing when viewing inventory
This commit is contained in:
sluicebox 2020-04-21 21:29:51 -07:00
parent bf1fecaa8e
commit 8ab13e59e1

View File

@ -34,8 +34,6 @@ void GfxMacCursor32::setMacCursorRemapList(int cursorCount, reg_t *cursors) {
}
void GfxMacCursor32::setView(const GuiResourceId viewId, const int16 loopNo, const int16 celNo) {
hide();
_cursorInfo.resourceId = viewId;
_cursorInfo.loopNo = loopNo;
_cursorInfo.celNo = celNo;
@ -68,6 +66,8 @@ void GfxMacCursor32::setView(const GuiResourceId viewId, const int16 loopNo, con
return;
}
hide();
CursorMan.disableCursorPalette(false);
CursorMan.replaceCursor(macCursor);