From 7c10e4e3d8a5bb6b5c6455ee9c142bdf6381ae13 Mon Sep 17 00:00:00 2001 From: md5 Date: Mon, 28 Feb 2011 22:23:32 +0200 Subject: SWORD2: Silence an MSVC warning (false positive) --- engines/sword2/animation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3