diff options
author | Eugene Sandulenko | 2016-05-14 11:42:43 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-14 11:42:43 +0200 |
commit | b83672070a5b0f22021baef0f5ac0889bb570a45 (patch) | |
tree | b6e81945775e0cfb3b65628d81f7b1735cdc9d98 /engines/sky/control.cpp | |
parent | a088d1fb10813559bdef4c470c877116cee0fc82 (diff) | |
download | scummvm-rg350-b83672070a5b0f22021baef0f5ac0889bb570a45.tar.gz scummvm-rg350-b83672070a5b0f22021baef0f5ac0889bb570a45.tar.bz2 scummvm-rg350-b83672070a5b0f22021baef0f5ac0889bb570a45.zip |
SKY: Add safety check
Diffstat (limited to 'engines/sky/control.cpp')
-rw-r--r-- | engines/sky/control.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sky/control.cpp b/engines/sky/control.cpp index 99e6daa756..9f4b6c21c6 100644 --- a/engines/sky/control.cpp +++ b/engines/sky/control.cpp @@ -402,7 +402,8 @@ void Control::animClick(ConResource *pButton) { void Control::drawMainPanel() { memset(_screenBuf, 0, GAME_SCREEN_WIDTH * FULL_SCREEN_HEIGHT); _system->copyRectToScreen(_screenBuf, GAME_SCREEN_WIDTH, 0, 0, GAME_SCREEN_WIDTH, FULL_SCREEN_HEIGHT); - _controlPanel->drawToScreen(NO_MASK); + if (_controlPanel) + _controlPanel->drawToScreen(NO_MASK); _exitButton->drawToScreen(NO_MASK); _savePanButton->drawToScreen(NO_MASK); _restorePanButton->drawToScreen(NO_MASK); |