diff options
Diffstat (limited to 'saga/render.cpp')
-rw-r--r-- | saga/render.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/saga/render.cpp b/saga/render.cpp index 10c26a661c..f401611412 100644 --- a/saga/render.cpp +++ b/saga/render.cpp @@ -134,8 +134,10 @@ int Render::drawScene() { // Display scene maps, if applicable if (getFlags() & RF_OBJECTMAP_TEST) { - _vm->_scene->_objectMap->draw(backbuf_surface, mouse_pt, _vm->_gfx->getWhite(), _vm->_gfx->getBlack()); - _vm->_scene->_actionMap->draw(backbuf_surface, _vm->_gfx->matchColor(R_RGB_RED)); + if (_vm->_scene->_objectMap) + _vm->_scene->_objectMap->draw(backbuf_surface, mouse_pt, _vm->_gfx->getWhite(), _vm->_gfx->getBlack()); + if (_vm->_scene->_actionMap) + _vm->_scene->_actionMap->draw(backbuf_surface, _vm->_gfx->matchColor(R_RGB_RED)); } // Draw queued actors |