From 64967c6222dd4a3eb0589ba970ff27c57f3461bb Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sun, 27 Aug 2017 15:55:11 +0200 Subject: PEGASUS: Reset the Pegasus biochip when toggling the shared screen space Fixes a crash to debugger in the following case: - TSA: Select he Pegasus biochip. The recall button is disabled. - Select the gas canister in the inventory - Jump to Norad VI - Press T to show the Pegasus biochip. The recall button is still incorrectly disabled. Clicking on it triggers an error. --- engines/pegasus/items/biochips/pegasuschip.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/pegasus/items/biochips/pegasuschip.cpp') diff --git a/engines/pegasus/items/biochips/pegasuschip.cpp b/engines/pegasus/items/biochips/pegasuschip.cpp index c74cc346ca..574316b5ca 100644 --- a/engines/pegasus/items/biochips/pegasuschip.cpp +++ b/engines/pegasus/items/biochips/pegasuschip.cpp @@ -49,6 +49,11 @@ void PegasusChip::select() { setUpPegasusChip(); } +void PegasusChip::takeSharedArea() { + BiochipItem::takeSharedArea(); + setUpPegasusChip(); +} + void PegasusChip::setUpPegasusChip() { switch (GameState.getCurrentNeighborhood()) { case kCaldoriaID: -- cgit v1.2.3