aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/window_text_buffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/window_text_buffer.cpp')
-rw-r--r--engines/glk/window_text_buffer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/glk/window_text_buffer.cpp b/engines/glk/window_text_buffer.cpp
index 2638302e62..b182643644 100644
--- a/engines/glk/window_text_buffer.cpp
+++ b/engines/glk/window_text_buffer.cpp
@@ -1566,7 +1566,9 @@ void TextBufferWindow::scrollOneLine(bool forced) {
_lines[0]._rHyper = 0;
Common::fill(_chars, _chars + TBLINELEN, ' ');
- memset(_attrs, 0, TBLINELEN * sizeof(Attributes));
+ Attributes *a = _attrs;
+ for (int i = 0; i < TBLINELEN; ++i, ++a)
+ a->clear();
_numChars = 0;