about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-10-04 21:29:58 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-10-04 21:29:58 -0700
commit513bfed876610f1dd117bee9934d1b4438d9685d (patch)
tree8e88e35fb3e05fd9e8fa2ac62e152e01c4070c29
parent926e1b049b818840b26fcff8395305307afabceb (diff)
downloadmu-513bfed876610f1dd117bee9934d1b4438d9685d.tar.gz
2239
-rw-r--r--034call.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/034call.cc b/034call.cc
index 43c9061f..27a26e90 100644
--- a/034call.cc
+++ b/034call.cc
@@ -85,7 +85,11 @@ if (Recipe.find(inst.operation) == Recipe.end()) {
 }
 :(replace{} "default:" following "End Primitive Recipe Implementations")
 default: {
-  if (Recipe.find(current_instruction().operation) == Recipe.end()) break;  // duplicate from Checks
+  if (Recipe.find(current_instruction().operation) == Recipe.end()) {  // duplicate from Checks
+    // stop running this instruction immediately
+    ++current_step_index();
+    continue;
+  }
   // not a primitive; look up the book of recipes
   Current_routine->calls.push_front(call(current_instruction().operation));
   call_housekeeping: