diff options
Diffstat (limited to 'cpp/016jump')
-rw-r--r-- | cpp/016jump | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/016jump b/cpp/016jump index 2ce18859..827e70f4 100644 --- a/cpp/016jump +++ b/cpp/016jump @@ -8,7 +8,7 @@ Next_recipe_number++; :(before "End Primitive Recipe Implementations") case JUMP: { trace("run") << "ingredient 0 is " << instructions[pc].ingredients[0].name; - pc += to_int(instructions[pc].ingredients[0].name); + pc += instructions[pc].ingredients[0].value; break; } @@ -49,7 +49,7 @@ case JUMP_IF: { break; } trace("run") << "ingredient 1 is " << instructions[pc].ingredients[1].name; - pc += to_int(instructions[pc].ingredients[1].name); + pc += instructions[pc].ingredients[1].value; trace("run") << "jumping to instruction " << pc+1; break; } @@ -91,7 +91,7 @@ case JUMP_UNLESS: { break; } trace("run") << "ingredient 1 is " << instructions[pc].ingredients[1].name; - pc += to_int(instructions[pc].ingredients[1].name); + pc += instructions[pc].ingredients[1].value; trace("run") << "jumping to instruction " << pc+1; break; } |