aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/agos/gfx.cpp6
1 files changed, 3 insertions, 3 deletions
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;