don't assert if no mouse buffer hasn't been setup

svn-id: r15980
This commit is contained in:
Gregory Montoir 2004-12-03 23:23:06 +00:00
parent fb5dcffff1
commit 0f2117cbd0

View file

@ -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;