diff options
author | Colin Snover | 2017-01-11 11:50:31 -0600 |
---|---|---|
committer | Colin Snover | 2017-01-11 12:02:12 -0600 |
commit | 320d6c8255de9943ab129fe536f99f4dabad2284 (patch) | |
tree | 3cae9d28a4f6befc2d9ab574e15ca15d714b4395 /engines/sci | |
parent | 5947f5a038166b38303b0c8a786e66768f3d8cc4 (diff) | |
download | scummvm-rg350-320d6c8255de9943ab129fe536f99f4dabad2284.tar.gz scummvm-rg350-320d6c8255de9943ab129fe536f99f4dabad2284.tar.bz2 scummvm-rg350-320d6c8255de9943ab129fe536f99f4dabad2284.zip |
SCI32: Fix uninitialised read of cursor background at start of game
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/graphics/cursor32.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/graphics/cursor32.cpp b/engines/sci/graphics/cursor32.cpp index 2f2611c769..6bb1323cac 100644 --- a/engines/sci/graphics/cursor32.cpp +++ b/engines/sci/graphics/cursor32.cpp @@ -278,6 +278,7 @@ void GfxCursor32::setView(const GuiResourceId viewId, const int16 loopNo, const } _cursorBack.data = (byte *)realloc(_cursorBack.data, _width * _height); + memset(_cursorBack.data, 0, _width * _height); _drawBuff1.data = (byte *)realloc(_drawBuff1.data, _width * _height); _drawBuff2.data = (byte *)realloc(_drawBuff2.data, _width * _height * 4); _savedVmapRegion.data = (byte *)realloc(_savedVmapRegion.data, _width * _height); |