diff options
-rw-r--r-- | backends/sdl/graphics.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/backends/sdl/graphics.cpp b/backends/sdl/graphics.cpp index a8f5f47360..8053f08c01 100644 --- a/backends/sdl/graphics.cpp +++ b/backends/sdl/graphics.cpp @@ -1059,11 +1059,9 @@ void OSystem_SDL::toggleMouseGrab() { } void OSystem_SDL::drawMouse() { - if (_mouseDrawn || !_mouseVisible) + if (_mouseDrawn || !_mouseVisible || !_mouseData) return; - assert(_mouseData); - int x = _mouseCurState.x - _mouseHotspotX; int y = _mouseCurState.y - _mouseHotspotY; int w = _mouseCurState.w; |