mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user