diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-08-26 13:47:39 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-08-26 13:47:39 -0700 |
commit | 2efceef6c1626698984ee725ff733c2e0860a79e (patch) | |
tree | bca37265ed71fd1ca1436d91e534f77f193e990e /085scenario_console.cc | |
parent | 7fd010710c0a34ff103bec3fb271f0c207bfcc53 (diff) | |
download | mu-2efceef6c1626698984ee725ff733c2e0860a79e.tar.gz |
3260
array length = number of elements array size = in locations
Diffstat (limited to '085scenario_console.cc')
-rw-r--r-- | 085scenario_console.cc | 4 |
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) |