diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mads/hotspots.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/hotspots.cpp b/engines/mads/hotspots.cpp index 560726bda6..0853f66eac 100644 --- a/engines/mads/hotspots.cpp +++ b/engines/mads/hotspots.cpp @@ -97,7 +97,7 @@ int DynamicHotspots::setCursor(int index, CursorType cursor) { void DynamicHotspots::remove(int index) { Scene &scene = _vm->_game->_scene; - if (_entries[index]._active) { + if (index >= 0 && _entries[index]._active) { if (_entries[index]._seqIndex >= 0) scene._sequences[_entries[index]._seqIndex]._dynamicHotspotIndex = -1; _entries[index]._active = false; |