From 71718c30739e038c4a02d41924db7370d6a1d4ab Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Sun, 23 May 2010 12:37:28 +0200 Subject: [PATCH 1/5] don't crash on STOP for non-existent zone --- engines/parallaction/exec_br.cpp | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/engines/parallaction/exec_br.cpp b/engines/parallaction/exec_br.cpp index 76e6f0d..aaad180 100644 --- a/engines/parallaction/exec_br.cpp +++ b/engines/parallaction/exec_br.cpp @@ -527,6 +527,7 @@ DECLARE_INSTRUCTION_OPCODE(endif) { DECLARE_INSTRUCTION_OPCODE(stop) { ZonePtr z = ctxt._inst->_z; + if (!z) return; // insegui script has "STOP insegui", which doesn't exist if (ACTIONTYPE(z) == kZoneHear) { warning("Parallaction_br::instOp_stop not yet implemented for HEAR zones"); // TODO: stop music or sound effects generated by a zone. -- 1.6.3.3