aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2/animation.cpp
diff options
context:
space:
mode:
authormd52011-02-28 22:23:32 +0200
committermd52011-02-28 22:23:32 +0200
commit7c10e4e3d8a5bb6b5c6455ee9c142bdf6381ae13 (patch)
treecc8721911e37aae1e0630b4f1f250ec301b25513 /engines/sword2/animation.cpp
parentbaa9cbf45c3b66faca1af3fc7bcff49dc02a63b8 (diff)
downloadscummvm-rg350-7c10e4e3d8a5bb6b5c6455ee9c142bdf6381ae13.tar.gz
scummvm-rg350-7c10e4e3d8a5bb6b5c6455ee9c142bdf6381ae13.tar.bz2
scummvm-rg350-7c10e4e3d8a5bb6b5c6455ee9c142bdf6381ae13.zip
SWORD2: Silence an MSVC warning (false positive)
Diffstat (limited to 'engines/sword2/animation.cpp')
-rw-r--r--engines/sword2/animation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword2/animation.cpp b/engines/sword2/animation.cpp
index c47b73ef83..8d1a9836f4 100644
--- a/engines/sword2/animation.cpp
+++ b/engines/sword2/animation.cpp
@@ -218,7 +218,7 @@ void MoviePlayer::drawTextObject(uint32 index, byte *screen, uint16 pitch) {
uint16 height = text->_textSprite.h;
// Resize text sprites for PSX version
- byte *psxSpriteBuffer;
+ byte *psxSpriteBuffer = 0;
if (Sword2Engine::isPsx()) {
height *= 2;
psxSpriteBuffer = (byte *)malloc(width * height);