aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-03-02 22:02:16 +0100
committertomsmeding <tom.smeding@gmail.com>2017-03-02 22:02:16 +0100
commit73f477e76de1ffee1f39ddac9b0a5dadd350647d (patch)
treec491c8c18aa3a954e3ef74b984d9767c948e807a
parenta74644d1d00cf1229c11cc7c1956867c4eb4cb7f (diff)
Fix bjump not setting ip pos
-rw-r--r--world.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/world.cpp b/world.cpp
index 0af24a2..7674164 100644
--- a/world.cpp
+++ b/world.cpp
@@ -159,6 +159,7 @@ WorldAction Robot::execute(Instruction &ins,World &world){
case ins_t::bjump:
ip.bank=ins.args[0].num-1;
+ ip.pos=ins.args[1].num-1;
break;
case ins_t::die: