From 34ded75f40ce187d0789f5987b11b86659de723a Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sat, 27 Apr 2013 01:54:08 +0200 Subject: TOON: Fix Uninitialized scalar variable CID 1003172, 1003173, 1003175, 1003176 --- engines/toon/toon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/toon') diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index 9fd8415676..7ad29ab8d8 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -2882,7 +2882,7 @@ void ToonEngine::getTextPosition(int32 characterId, int32 *retX, int32 *retY) { if (character && !_gameState->_inCutaway) { if (character->getAnimationInstance()) { if (character->getX() >= _gameState->_currentScrollValue && character->getX() <= _gameState->_currentScrollValue + TOON_SCREEN_WIDTH) { - int16 x1, y1, x2, y2; + int16 x1= 0, y1 = 0, x2 = 0, y2 = 0; character->getAnimationInstance()->getRect(&x1, &y1, &x2, &y2); *retX = (x1 + x2) / 2; *retY = y1; -- cgit v1.2.3