aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorMax Horn2009-12-08 20:44:57 +0000
committerMax Horn2009-12-08 20:44:57 +0000
commit5f178e86500b93d6d0c5fb65ce2908522319e703 (patch)
treeda02f7959a15224fc94849bff02935b74c69f1fd /engines/gob
parent923cbff625f91c5afc6163813852e9a58ed43912 (diff)
downloadscummvm-rg350-5f178e86500b93d6d0c5fb65ce2908522319e703.tar.gz
scummvm-rg350-5f178e86500b93d6d0c5fb65ce2908522319e703.tar.bz2
scummvm-rg350-5f178e86500b93d6d0c5fb65ce2908522319e703.zip
Fix some MSVC warnings (part of patch #2909981)
svn-id: r46291
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/draw.cpp2
-rw-r--r--engines/gob/hotspots.cpp4
2 files changed, 3 insertions, 3 deletions
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);