From 8b4c44373c36de45bc543ac7398df4eb8a4dddbf Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 8 Feb 2009 21:36:43 +0000 Subject: Silenced MSVC warnings about uninitialized variables svn-id: r36251 --- engines/agos/gfx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/agos/gfx.cpp b/engines/agos/gfx.cpp index b90889f460..fa33c7faf4 100644 --- a/engines/agos/gfx.cpp +++ b/engines/agos/gfx.cpp @@ -861,7 +861,7 @@ void AGOSEngine::drawImage(VC10_state *state) { Graphics::Surface *screen = _system->lockScreen(); - uint16 xoffs, yoffs; + uint16 xoffs = 0, yoffs = 0; if (getGameType() == GType_WW) { if (_windowNum == 4 || (_windowNum >= 10 && _windowNum <= 27)) { state->surf_addr = _window4BackScn; @@ -1350,8 +1350,8 @@ void AGOSEngine::setWindowImage(uint16 mode, uint16 vgaSpriteId) { Graphics::Surface *screen = _system->lockScreen(); byte *dst = getBackGround() + xoffs + yoffs * _screenWidth; - byte *src; - uint srcWidth; + byte *src = 0; + uint srcWidth = 0; if (getGameType() == GType_SIMON2) { src = _window4BackScn + xoffs + yoffs * 320; -- cgit v1.2.3