about summary refs log tree commit diff stats
path: root/028call_reply.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-07-22 21:15:09 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-07-22 21:15:09 -0700
commit9e0eac54ec630375bfa15e24dad5527353b5821c (patch)
tree73f761d62d96c6ff140b50ee947f3ad387072d64 /028call_reply.cc
parente05a50bcdd6307fa5da55e34e18c7ceac3567314 (diff)
downloadmu-9e0eac54ec630375bfa15e24dad5527353b5821c.tar.gz
3133
Don't die if an instruction accidentally has too many products.
Diffstat (limited to '028call_reply.cc')
-rw-r--r--028call_reply.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/028call_reply.cc b/028call_reply.cc
index 831f229b..28333b32 100644
--- a/028call_reply.cc
+++ b/028call_reply.cc
@@ -36,7 +36,7 @@ case RETURN: {
   // just in case 'main' returns a value, drop it for now
   if (Current_routine->calls.empty()) goto stop_running_current_routine;
   const instruction& caller_instruction = current_instruction();
-  for (int i = 0; i < SIZE(caller_instruction.products); ++i)
+  for (int i = 0; i < SIZE(ingredients); ++i)
     trace(9998, "run") << "result " << i << " is " << to_string(ingredients.at(i)) << end();
 
   // make reply products available to caller