diff options
author | Eugene Sandulenko | 2015-11-27 22:54:13 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-11-27 22:54:13 +0100 |
commit | 48e048be8d888c6c52140eeedac2742f5b1319cb (patch) | |
tree | e6d71145989f90cd0a483d1462720442dbb88e78 /engines/wintermute/ad/ad_game.cpp | |
parent | 8f3d528b7efba1b3c86a5a4934eae5ace78459a9 (diff) | |
download | scummvm-rg350-48e048be8d888c6c52140eeedac2742f5b1319cb.tar.gz scummvm-rg350-48e048be8d888c6c52140eeedac2742f5b1319cb.tar.bz2 scummvm-rg350-48e048be8d888c6c52140eeedac2742f5b1319cb.zip |
WINTERMUTE: More sanity checks
Diffstat (limited to 'engines/wintermute/ad/ad_game.cpp')
-rw-r--r-- | engines/wintermute/ad/ad_game.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/ad/ad_game.cpp b/engines/wintermute/ad/ad_game.cpp index 3c4383f55e..df0328ce5e 100644 --- a/engines/wintermute/ad/ad_game.cpp +++ b/engines/wintermute/ad/ad_game.cpp @@ -2261,7 +2261,7 @@ bool AdGame::onMouseRightUp() { bool AdGame::displayDebugInfo() { char str[100]; if (_gameRef->_debugDebugMode) { - sprintf(str, "Mouse: %d, %d (scene: %d, %d)", _mousePos.x, _mousePos.y, _mousePos.x + _scene->getOffsetLeft(), _mousePos.y + _scene->getOffsetTop()); + sprintf(str, "Mouse: %d, %d (scene: %d, %d)", _mousePos.x, _mousePos.y, _mousePos.x + (_scene ? _scene->getOffsetLeft() : 0), _mousePos.y + (_scene ? _scene->getOffsetTop() : 0)); _systemFont->drawText((byte *)str, 0, 90, _renderer->getWidth(), TAL_RIGHT); sprintf(str, "Scene: %s (prev: %s)", (_scene && _scene->getName()) ? _scene->getName() : "???", _prevSceneName ? _prevSceneName : "???"); |