fix dottdemo by checking that room exists before trying to set a custom cursor from it, fixes bug #796971

svn-id: r9909
This commit is contained in:
Jonathan Gray
2003-08-29 07:57:20 +00:00
parent ef4fdd03f0
commit ea1cd18354
+1 -1
View File
@@ -3407,7 +3407,7 @@ void Scumm::updatePalette() {
void Scumm::setupCursor() {
_cursor.animate = 1;
if (_gameId == GID_TENTACLE) {
if (_gameId == GID_TENTACLE && res.roomno[rtRoom][60]) {
// HACK: For DOTT we manually set the default cursor. See also bug #786994
setCursorImg(697, 60, 1);
makeCursorColorTransparent(1);