From 352b8a67f02bce2f3bc56aece21bffc52eb0508d Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 6 Jan 2014 22:46:40 +0200 Subject: FULLPIPE: Initialize variables --- engines/fullpipe/scenes/scene25.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/fullpipe/scenes/scene25.cpp b/engines/fullpipe/scenes/scene25.cpp index 5c2ddc695e..574e3ddace 100644 --- a/engines/fullpipe/scenes/scene25.cpp +++ b/engines/fullpipe/scenes/scene25.cpp @@ -436,7 +436,7 @@ void sceneHandler25_backToPipe() { void sceneHandler25_walkOnLadder(StaticANIObject *ani, Common::Point *pnt, MessageQueue *mq, int flag) { int aniY = ani->_oy; - int newx, newy; + int newx = 0, newy = 0; Common::Point point; ExCommand *ex; @@ -488,7 +488,7 @@ void sceneHandler25_walkOnLadder(StaticANIObject *ani, Common::Point *pnt, Messa for (int i = 0; i < numObsolete; i++) mq->deleteExCommandByIndex(0, 1); - ex = new ExCommand(ani->_id, 34, 256, 0, 0, 0, 1, 0, 0, 0); + ex = new ExCommand(ani->_id, 34, 256, 0, 0, 0, 1, 0, 0, 0); ex->_field_14 = 256; ex->_messageNum = 0; @@ -588,7 +588,7 @@ int sceneHandler25(ExCommand *cmd) { break; case 33: - if (g_fp->_aniMan2) { + if (g_fp->_aniMan2) { int x = g_fp->_aniMan2->_ox; int y = g_fp->_aniMan2->_oy; -- cgit v1.2.3