summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/scn2674.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/scn2674.cpp')
-rw-r--r--src/devices/video/scn2674.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/video/scn2674.cpp b/src/devices/video/scn2674.cpp
index 78bc2afe5af..3058e110846 100644
--- a/src/devices/video/scn2674.cpp
+++ b/src/devices/video/scn2674.cpp
@@ -107,7 +107,7 @@ void scn2674_device::device_start()
screen().register_screen_bitmap(m_bitmap);
m_char_space = &space(0);
- if (m_attr_space != nullptr)
+ if (has_space(1))
m_attr_space = &space(1);
save_item(NAME(m_address));
@@ -633,7 +633,7 @@ void scn2674_device::write_delayed_command(uint8_t data)
// write at pointer address
m_char_space->write_byte(m_display_pointer_address, m_char_buffer);
if (m_attr_space != nullptr)
- m_attr_space->write_byte(m_display_pointer_address, m_char_buffer);
+ m_attr_space->write_byte(m_display_pointer_address, m_attr_buffer);
LOGMASKED(LOG_COMMAND, "%s: DELAYED write at display pointer address %02x\n", machine().describe_context(), data);
break;