diff options
| -rw-r--r-- | common/system.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/common/system.cpp b/common/system.cpp index d0548cdd2d..863f395671 100644 --- a/common/system.cpp +++ b/common/system.cpp @@ -115,7 +115,8 @@ Common::EventManager *OSystem::getEventManager() {  void OSystem::clearScreen() {  	Graphics::Surface *screen = lockScreen(); -	memset(screen->pixels, 0, screen->h * screen->pitch); +	if (screen && screen->pixels) +		memset(screen->pixels, 0, screen->h * screen->pitch);  	unlockScreen();  } | 
