From e9e2d6ccb964e4b8db77f8d65bc0f0f01f48c95a Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 17 Dec 2012 19:01:03 +0200 Subject: MOHAWK: Initialize the empty cursor before setting it inside setCursor() --- engines/mohawk/cursors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/mohawk/cursors.cpp b/engines/mohawk/cursors.cpp index 7962379a5c..cdb4e1482f 100644 --- a/engines/mohawk/cursors.cpp +++ b/engines/mohawk/cursors.cpp @@ -106,7 +106,7 @@ void MystCursorManager::hideCursor() { void MystCursorManager::setCursor(uint16 id) { // Zero means empty cursor if (id == 0) { - static const byte emptyCursor[4]; + static const byte emptyCursor[4] = { 0, 0, 0, 0 }; CursorMan.replaceCursor(&emptyCursor, 2, 2, 0, 0, 0); return; } -- cgit v1.2.3