diff options
Diffstat (limited to 'engines/mohawk/cursors.cpp')
-rw-r--r-- | engines/mohawk/cursors.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/mohawk/cursors.cpp b/engines/mohawk/cursors.cpp index e73d4ed6a3..c7bd03678f 100644 --- a/engines/mohawk/cursors.cpp +++ b/engines/mohawk/cursors.cpp @@ -106,8 +106,8 @@ void MystCursorManager::hideCursor() { void MystCursorManager::setCursor(uint16 id) { // Zero means empty cursor if (id == 0) { - static const byte emptyCursor = 0; - CursorMan.replaceCursor(&emptyCursor, 1, 1, 0, 0, 0); + static const byte emptyCursor[4] = { 0, 0, 0, 0 }; + CursorMan.replaceCursor(&emptyCursor, 2, 2, 0, 0, 0); return; } @@ -160,6 +160,7 @@ void NECursorManager::setCursor(uint16 id) { Graphics::Cursor *cursor = cursorGroup->cursors[0].cursor; CursorMan.replaceCursor(cursor->getSurface(), cursor->getWidth(), cursor->getHeight(), cursor->getHotspotX(), cursor->getHotspotY(), cursor->getKeyColor()); CursorMan.replaceCursorPalette(cursor->getPalette(), 0, 256); + delete cursorGroup; return; } } |