aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-07-30 02:05:57 +0530
committerEugene Sandulenko2019-09-03 17:17:30 +0200
commit78278af46a4fad3de35caa42d72fb2b8ef38612e (patch)
treec678eefa60f1535a5d6e0aa4f1cad9e76872aa8f /engines/hdb
parent6e67fe35b900180d186289e6fadc4fd4904c899a (diff)
downloadscummvm-rg350-78278af46a4fad3de35caa42d72fb2b8ef38612e.tar.gz
scummvm-rg350-78278af46a4fad3de35caa42d72fb2b8ef38612e.tar.bz2
scummvm-rg350-78278af46a4fad3de35caa42d72fb2b8ef38612e.zip
HDB: Check isDemo() first, otherwise it would crash
by trying to load Demo GFX
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/menu.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/hdb/menu.cpp b/engines/hdb/menu.cpp
index 537035bcb3..9c36c9bd02 100644
--- a/engines/hdb/menu.cpp
+++ b/engines/hdb/menu.cpp
@@ -687,15 +687,15 @@ void Menu::drawMenu() {
g_hdb->_gfx->draw3DStars();
drawNebula();
- if (_quitActive == 2) { // XXXX
+ if (_quitActive == 3 || !g_hdb->isDemo()) {
+ if (!_quitScreen)
+ _quitScreen = g_hdb->_gfx->loadPic(PIC_QUITSCREEN);
+ _quitScreen->drawMasked(kQuitX, kQuitY);
+ } else if (_quitActive == 2) { // XXXX
_screenshots1gfx->drawMasked(kQuitX, kQuitY);
_screenshots2gfx->drawMasked(kQuitX, kScreenHeight - _screenshots2gfx->_height);
} else if (_quitActive == 1) {
_screenshots1agfx->drawMasked(kQuitX, kQuitY);
- } else if (_quitActive == 3 || !g_hdb->isDemo()) {
- if (!_quitScreen)
- _quitScreen = g_hdb->_gfx->loadPic(PIC_QUITSCREEN);
- _quitScreen->drawMasked(kQuitX, kQuitY);
}
}
}