aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular/dialogs_nebular.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2014-10-18 20:46:17 +0300
committerFilippos Karapetis2014-10-18 20:46:17 +0300
commit879890e021028983dda5af3ea83156357ba239a6 (patch)
tree28a776c8cd0a5b4bec53e5150e1663da0d7febdc /engines/mads/nebular/dialogs_nebular.cpp
parentad1aedec7687019b44066bc7695f4d227cee1a5b (diff)
downloadscummvm-rg350-879890e021028983dda5af3ea83156357ba239a6.tar.gz
scummvm-rg350-879890e021028983dda5af3ea83156357ba239a6.tar.bz2
scummvm-rg350-879890e021028983dda5af3ea83156357ba239a6.zip
MADS: Clear scene sprites and objects when showing a game menu
This shows the game menu, albeit with the wrong palette
Diffstat (limited to 'engines/mads/nebular/dialogs_nebular.cpp')
-rw-r--r--engines/mads/nebular/dialogs_nebular.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp
index 6e0e7821ab..f51d046951 100644
--- a/engines/mads/nebular/dialogs_nebular.cpp
+++ b/engines/mads/nebular/dialogs_nebular.cpp
@@ -594,6 +594,9 @@ GameDialog::GameDialog(MADSEngine *vm) : FullScreenDialog(vm) {
_vm->_events->waitCursor();
scene.clearVocab();
scene._dynamicHotspots.clear();
+ // Clear scene sprites and objects
+ scene._spriteSlots.reset();
+ _vm->_game->_screenObjects.clear();
_vm->_dialogs->_defaultPosition = Common::Point(-1, -1);
_menuSpritesIndex = 0;
}