Removed assert that shouln't be there

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@540 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-07-10 03:33:43 +00:00
parent 3c6721a0cb
commit 2d7834f548
+1 -3
View File
@@ -205,10 +205,8 @@ const Instruction* Script::backtraceSkip(const Instruction* instr, int to_skip)
to_skip += 2 * instr->data - 1;
break;
case I_JUMP: {
// jumps outputed by the parser are always backwards
// and there will be a way not to take this jump
// there will be a way not to take this jump
// the part in between will have no significant stack effect
assert(&instructions[instr->data] < instr);
unsigned int after_jump = instr + 1 - &instructions[0];
for (--instr ; instr >= &instructions[0] ; --instr) {
if (instr->instr == I_LOOP && instr->data == after_jump) {