aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-08-12 20:26:26 +0200
committerEugene Sandulenko2019-09-03 17:17:33 +0200
commitfebdd3beee5c0434552b1993787de9378d3332c9 (patch)
treea069c0d90a48953c01f2ecee19b2b7c1572bc762
parent8198a5d99e778c37c9c185e79629b072151e36d2 (diff)
downloadscummvm-rg350-febdd3beee5c0434552b1993787de9378d3332c9.tar.gz
scummvm-rg350-febdd3beee5c0434552b1993787de9378d3332c9.tar.bz2
scummvm-rg350-febdd3beee5c0434552b1993787de9378d3332c9.zip
HDB: Fix crashes in PPC demo
-rw-r--r--engines/hdb/menu.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/hdb/menu.cpp b/engines/hdb/menu.cpp
index caaa475834..730577339d 100644
--- a/engines/hdb/menu.cpp
+++ b/engines/hdb/menu.cpp
@@ -536,9 +536,10 @@ void Menu::drawMenu() {
drawRocketAndSelections();
// draw version #
- _versionGfx->drawMasked(g_hdb->_screenWidth - 6 * 8, g_hdb->_screenHeight - 8);
+ if (_versionGfx)
+ _versionGfx->drawMasked(g_hdb->_screenWidth - 6 * 8, g_hdb->_screenHeight - 8);
- if (g_hdb->isDemo()) {
+ if (g_hdb->isDemo() && _demoPlaqueGfx) {
_demoPlaqueGfx->drawMasked(g_hdb->_screenWidth / 2 - _demoPlaqueGfx->_width / 2, 2);
}