From 5f178e86500b93d6d0c5fb65ce2908522319e703 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 8 Dec 2009 20:44:57 +0000 Subject: Fix some MSVC warnings (part of patch #2909981) svn-id: r46291 --- engines/gob/draw.cpp | 2 +- engines/gob/hotspots.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/gob') diff --git a/engines/gob/draw.cpp b/engines/gob/draw.cpp index 2e86608e62..deadd5c682 100644 --- a/engines/gob/draw.cpp +++ b/engines/gob/draw.cpp @@ -815,7 +815,7 @@ void Draw::handleWinBorder(int16 id) { } int16 Draw::handleCurWin() { - int8 matchNum; + int8 matchNum = 0; int16 bestMatch = -1; warning("handleCurWin"); diff --git a/engines/gob/hotspots.cpp b/engines/gob/hotspots.cpp index 896e10c259..004661244f 100644 --- a/engines/gob/hotspots.cpp +++ b/engines/gob/hotspots.cpp @@ -1606,8 +1606,8 @@ void Hotspots::evaluate() { int16 Hotspots::findCursor(uint16 x, uint16 y) const { int16 cursor = 0; - int16 deltax; - int16 deltay; + int16 deltax = 0; + int16 deltay = 0; if ( _vm->getGameType() == kGameTypeFascination ) { cursor = curWindow(deltax, deltay); -- cgit v1.2.3