Commit 8814e6f8 authored by twanvl's avatar twanvl

fixed evil bug (deleting too much)

parent 3e6c3ba2
......@@ -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();
}
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment