don't assert if no mouse buffer hasn't been setup
svn-id: r15980
This commit is contained in:
parent
fb5dcffff1
commit
0f2117cbd0
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue