fixed evil bug (deleting too much)

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@64 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-31 15:53:08 +00:00
parent e2220a5a97
commit f7a6d9e79d
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ ScriptValueP Context::dependencies(const Dependency& dep, const Script& script)
if (scope) closeScope(scope); // restore scope
stack.resize(stack_size); // restore stack
// delete jump records
while(jumps.empty()) {
while (!jumps.empty()) {
delete jumps.top();
jumps.pop();
}
+1
View File
@@ -142,6 +142,7 @@ template <> void Reader::handle(ScriptableImage& s) {
// script is a constant function
s.script.script = new_intrusive<Script>();
s.script.script->addInstruction(I_PUSH_CONST, s.script.unparsed);
s.script.script->addInstruction(I_RET);
}
}
template <> void Writer::handle(const ScriptableImage& s) {