[Scummvm-cvs-logs] scummvm master -> 34ded75f40ce187d0789f5987b11b86659de723a

Strangerke Strangerke at scummvm.org
Sat Apr 27 11:21:18 CEST 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
34ded75f40 TOON: Fix Uninitialized scalar variable CID 1003172, 1003173, 1003175, 1003176


Commit: 34ded75f40ce187d0789f5987b11b86659de723a
    https://github.com/scummvm/scummvm/commit/34ded75f40ce187d0789f5987b11b86659de723a
Author: Strangerke (strangerke at scummvm.org)
Date: 2013-04-27T02:19:05-07:00

Commit Message:
TOON: Fix Uninitialized scalar variable CID 1003172, 1003173, 1003175, 1003176

Changed paths:
    engines/toon/toon.cpp



diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp
index 9fd8415..7ad29ab 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;






More information about the Scummvm-git-logs mailing list