mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 05: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;
|
to_skip += 2 * instr->data - 1;
|
||||||
break;
|
break;
|
||||||
case I_JUMP: {
|
case I_JUMP: {
|
||||||
// jumps outputed by the parser are always backwards
|
// there will be a way not to take this jump
|
||||||
// and there will be a way not to take this jump
|
|
||||||
// the part in between will have no significant stack effect
|
// the part in between will have no significant stack effect
|
||||||
assert(&instructions[instr->data] < instr);
|
|
||||||
unsigned int after_jump = instr + 1 - &instructions[0];
|
unsigned int after_jump = instr + 1 - &instructions[0];
|
||||||
for (--instr ; instr >= &instructions[0] ; --instr) {
|
for (--instr ; instr >= &instructions[0] ; --instr) {
|
||||||
if (instr->instr == I_LOOP && instr->data == after_jump) {
|
if (instr->instr == I_LOOP && instr->data == after_jump) {
|
||||||
|
|||||||
Reference in New Issue
Block a user