From b28ae56b256e8e8b20cc04d9858d18a3c6e9a46c Mon Sep 17 00:00:00 2001 From: twanvl Date: Sun, 24 Aug 2008 18:26:31 +0000 Subject: [PATCH] close scopes in exception handler git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1166 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/script/context.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/script/context.cpp b/src/script/context.cpp index c4cea527..00127689 100644 --- a/src/script/context.cpp +++ b/src/script/context.cpp @@ -121,6 +121,7 @@ ScriptValueP Context::eval(const Script& script, bool useScope) { // get function and call stack.back() = stack.back()->eval(*this); } catch (const Error& e) { + closeScope(scope); // try to determine what named function was called // the instructions for this look like: // I_GET_VAR name of function