diff options
author | Torbjörn Andersson | 2006-05-21 18:49:26 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-21 18:49:26 +0000 |
commit | 7d15c60ab903accd2331cbdfcd05645235a42512 (patch) | |
tree | 47725e26727ccf37ee0070862ed1de23dca6c16f /backends/sdl | |
parent | 9fad465cf6c22dfe17f32057c627bfb3e5f0a258 (diff) | |
download | scummvm-rg350-7d15c60ab903accd2331cbdfcd05645235a42512.tar.gz scummvm-rg350-7d15c60ab903accd2331cbdfcd05645235a42512.tar.bz2 scummvm-rg350-7d15c60ab903accd2331cbdfcd05645235a42512.zip |
Don't crash if drawMouse() is called before _mouseSurface is created.
svn-id: r22562
Diffstat (limited to 'backends/sdl')
-rw-r--r-- | backends/sdl/graphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/sdl/graphics.cpp b/backends/sdl/graphics.cpp index 054ca9922b..b733921b65 100644 --- a/backends/sdl/graphics.cpp +++ b/backends/sdl/graphics.cpp @@ -1454,7 +1454,7 @@ void OSystem_SDL::undrawMouse() { } void OSystem_SDL::drawMouse() { - if (!_mouseVisible) { + if (!_mouseVisible || !_mouseSurface) { _mouseBackup.x = _mouseBackup.y = _mouseBackup.w = _mouseBackup.h = 0; return; } |