aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2013-04-27 01:54:08 +0200
committerStrangerke2013-04-27 11:19:05 +0200
commit34ded75f40ce187d0789f5987b11b86659de723a (patch)
tree4cc0e2636b6613863001e77f1eeb7311d8b047e8
parentf8593e8ecb9b0fbe01893eb8bf086805edfd65a0 (diff)
downloadscummvm-rg350-34ded75f40ce187d0789f5987b11b86659de723a.tar.gz
scummvm-rg350-34ded75f40ce187d0789f5987b11b86659de723a.tar.bz2
scummvm-rg350-34ded75f40ce187d0789f5987b11b86659de723a.zip
TOON: Fix Uninitialized scalar variable CID 1003172, 1003173, 1003175, 1003176
-rw-r--r--engines/toon/toon.cpp2
1 files changed, 1 insertions, 1 deletions
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;