diff options
author | Gregory Montoir | 2004-12-03 23:23:06 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-12-03 23:23:06 +0000 |
commit | 0f2117cbd023ccb764d2e211cc47f96bffd01cac (patch) | |
tree | 6a0aa6d6f4d943629d9c0c1e52a17c36c250cd5f /backends/sdl | |
parent | fb5dcffff19c8bb5c516a6ddcaea397fb709194b (diff) | |
download | scummvm-rg350-0f2117cbd023ccb764d2e211cc47f96bffd01cac.tar.gz scummvm-rg350-0f2117cbd023ccb764d2e211cc47f96bffd01cac.tar.bz2 scummvm-rg350-0f2117cbd023ccb764d2e211cc47f96bffd01cac.zip |
don't assert if no mouse buffer hasn't been setup
svn-id: r15980
Diffstat (limited to 'backends/sdl')
-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; |