diff options
author | Paul Gilbert | 2019-07-24 20:32:14 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-07-24 20:32:14 -0700 |
commit | 58498cf5f21375c3ab89a8486175ff8de087bdf7 (patch) | |
tree | 62f72f4033f6369ae492131d3c5b52e2e6620d90 /engines/glk/window_text_buffer.cpp | |
parent | a1414f9ad6739cd411ca79ad77359ae4858d1379 (diff) | |
download | scummvm-rg350-58498cf5f21375c3ab89a8486175ff8de087bdf7.tar.gz scummvm-rg350-58498cf5f21375c3ab89a8486175ff8de087bdf7.tar.bz2 scummvm-rg350-58498cf5f21375c3ab89a8486175ff8de087bdf7.zip |
GLK: Fixing some gcc 8 warnings
Diffstat (limited to 'engines/glk/window_text_buffer.cpp')
-rw-r--r-- | engines/glk/window_text_buffer.cpp | 4 |
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; |