aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
authorPaul Gilbert2017-11-21 19:33:02 -0500
committerPaul Gilbert2017-11-21 19:33:02 -0500
commit89d20bafa98168dbe58ba0b71058deaf6026e9ba (patch)
treeecb9c589cf6e70d136b22d93198fcf4458622b43 /engines/mads
parent96fab1dc9ecf329af1b40e796ccaf82d68b67166 (diff)
downloadscummvm-rg350-89d20bafa98168dbe58ba0b71058deaf6026e9ba.tar.gz
scummvm-rg350-89d20bafa98168dbe58ba0b71058deaf6026e9ba.tar.bz2
scummvm-rg350-89d20bafa98168dbe58ba0b71058deaf6026e9ba.zip
MADS: Fix crash when Rex is locked in cell
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/nebular/nebular_scenes3.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mads/nebular/nebular_scenes3.cpp b/engines/mads/nebular/nebular_scenes3.cpp
index 7323ee893d..6c6afa9a61 100644
--- a/engines/mads/nebular/nebular_scenes3.cpp
+++ b/engines/mads/nebular/nebular_scenes3.cpp
@@ -881,6 +881,9 @@ void Scene307::step() {
_guardTime = 0;
} else if ((_prisonerTimer > 300) && (_game._screenObjects._inputMode != kInputConversation) && (_scene->_animation[0] == nullptr) && !_activePrisonerFl) {
if (!_globals[kMetBuddyBeast]) {
+ if (_prisonerMessageId == -1)
+ _prisonerMessageId = 0x104;
+
int idx = _scene->_kernelMessages.add(Common::Point(5, 51), 0xFDFC, 0, 81, 120, _game.getQuote(_prisonerMessageId));
_scene->_kernelMessages.setQuoted(idx, 4, true);
_prisonerMessageId++;