about summary refs log tree commit diff stats
path: root/085scenario_console.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-08-26 13:47:39 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-08-26 13:47:39 -0700
commit2efceef6c1626698984ee725ff733c2e0860a79e (patch)
treebca37265ed71fd1ca1436d91e534f77f193e990e /085scenario_console.cc
parent7fd010710c0a34ff103bec3fb271f0c207bfcc53 (diff)
downloadmu-2efceef6c1626698984ee725ff733c2e0860a79e.tar.gz
3260
array length = number of elements
array size = in locations
Diffstat (limited to '085scenario_console.cc')
-rw-r--r--085scenario_console.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/085scenario_console.cc b/085scenario_console.cc
index d18792af..1e11af12 100644
--- a/085scenario_console.cc
+++ b/085scenario_console.cc
@@ -255,8 +255,8 @@ case REPLACE_IN_CONSOLE: {
   }
   int console_address = get_or_insert(Memory, CONSOLE);
   int console_data = get_or_insert(Memory, console_address+1);
-  int size = get_or_insert(Memory, console_data);  // array size
-  for (int i = 0, curr = console_data+1; i < size; ++i, curr+=size_of_event()) {
+  int length = get_or_insert(Memory, console_data);  // array length
+  for (int i = 0, curr = console_data+1; i < length; ++i, curr+=size_of_event()) {
     if (get_or_insert(Memory, curr) != /*text*/0) continue;
     if (get_or_insert(Memory, curr+1) != ingredients.at(0).at(0)) continue;
     for (int n = 0; n < size_of_event(); ++n)