aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-06 20:20:25 -0500
committerPaul Gilbert2015-03-06 20:20:25 -0500
commit1cb764b08629c2171314a88c491f8fc461202cc6 (patch)
treee958611491fd82ae8083eb2f21cf16b8fd558c7c
parent62d007168a82614f30a8aa64ae613e30ba111771 (diff)
downloadscummvm-rg350-1cb764b08629c2171314a88c491f8fc461202cc6.tar.gz
scummvm-rg350-1cb764b08629c2171314a88c491f8fc461202cc6.tar.bz2
scummvm-rg350-1cb764b08629c2171314a88c491f8fc461202cc6.zip
MADS: Fix crash after installing cards in ship
-rw-r--r--engines/mads/nebular/nebular_scenes8.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mads/nebular/nebular_scenes8.cpp b/engines/mads/nebular/nebular_scenes8.cpp
index a0bfa0689a..75b6b17a94 100644
--- a/engines/mads/nebular/nebular_scenes8.cpp
+++ b/engines/mads/nebular/nebular_scenes8.cpp
@@ -1218,6 +1218,8 @@ void Scene805::enter() {
}
void Scene805::step() {
+ UserInterface &userInterface = _vm->_game->_scene._userInterface;
+
if (_game._trigger == 70) {
_scene->_hotspots.activate(OBJ_SHIELD_MODULATOR, false);
_globals._sequenceIndexes[1] = _scene->_sequences.startCycle(_globals._spriteIndexes[1], false, 25);
@@ -1225,6 +1227,7 @@ void Scene805::step() {
_scene->_dynamicHotspots.setPosition(idx, Common::Point(0, 0), FACING_DUMMY);
_globals[kShieldModInstalled] = true;
_game._objects.setRoom(OBJ_SHIELD_MODULATOR, NOWHERE);
+ userInterface._selectedInvIndex = -1;
_game._player._stepEnabled = true;
_vm->_sound->command(24);
}
@@ -1236,6 +1239,7 @@ void Scene805::step() {
_scene->_dynamicHotspots.setPosition(idx, Common::Point(0, 0), FACING_DUMMY);
_globals[kTargetModInstalled] = true;
_game._objects.setRoom(OBJ_TARGET_MODULE, NOWHERE);
+ userInterface._selectedInvIndex = -1;
_game._player._stepEnabled = true;
_vm->_sound->command(24);
}