mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
close scopes in exception handler
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1166 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user