mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 05:57:00 -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
|
// get function and call
|
||||||
stack.back() = stack.back()->eval(*this);
|
stack.back() = stack.back()->eval(*this);
|
||||||
} catch (const Error& e) {
|
} catch (const Error& e) {
|
||||||
|
closeScope(scope);
|
||||||
// try to determine what named function was called
|
// try to determine what named function was called
|
||||||
// the instructions for this look like:
|
// the instructions for this look like:
|
||||||
// I_GET_VAR name of function
|
// I_GET_VAR name of function
|
||||||
|
|||||||
Reference in New Issue
Block a user