about summary refs log tree commit diff stats
path: root/072scenario_screen.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-10-28 06:27:01 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-10-28 06:27:01 -0700
commit67573caf07392a89df841ef47cc98e5b91a13205 (patch)
tree82698363791699f96fbfb6fd6a9e9749996476f4 /072scenario_screen.cc
parent5810092d53f44e639c7bfd4e62d1960c323dcb6f (diff)
downloadmu-67573caf07392a89df841ef47cc98e5b91a13205.tar.gz
2297
Diffstat (limited to '072scenario_screen.cc')
-rw-r--r--072scenario_screen.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/072scenario_screen.cc b/072scenario_screen.cc
index 4ecbbd4d..ed2ddad3 100644
--- a/072scenario_screen.cc
+++ b/072scenario_screen.cc
@@ -197,7 +197,7 @@ struct raw_string_stream {
 
 :(code)
 void check_screen(const string& expected_contents, const int color) {
-  assert(!Current_routine->calls.front().default_space);  // not supported
+  assert(!current_call().default_space);  // not supported
   long long int screen_location = Memory[SCREEN];
   int data_offset = find_element_name(Type_ordinal["screen"], "data", "");
   assert(data_offset >= 0);
@@ -332,7 +332,7 @@ case _DUMP_SCREEN: {
 
 :(code)
 void dump_screen() {
-  assert(!Current_routine->calls.front().default_space);  // not supported
+  assert(!current_call().default_space);  // not supported
   long long int screen_location = Memory[SCREEN];
   int width_offset = find_element_name(Type_ordinal["screen"], "num-columns", "");
   long long int screen_width = Memory[screen_location+width_offset];