From 89d20bafa98168dbe58ba0b71058deaf6026e9ba Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 21 Nov 2017 19:33:02 -0500 Subject: MADS: Fix crash when Rex is locked in cell --- engines/mads/nebular/nebular_scenes3.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/mads') 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++; -- cgit v1.2.3