From 558fc88cc68b0c4780caed9ecd546187de46c662 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 28 Jul 2010 05:55:09 +0000 Subject: SCI: Initialize _resourceData to 0 in GfxRobot. Fixes PQSWAT demo. svn-id: r51404 --- engines/sci/graphics/robot.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/sci') diff --git a/engines/sci/graphics/robot.cpp b/engines/sci/graphics/robot.cpp index 352dc8177c..1572a0a9ec 100644 --- a/engines/sci/graphics/robot.cpp +++ b/engines/sci/graphics/robot.cpp @@ -37,6 +37,7 @@ GfxRobot::GfxRobot(ResourceManager *resMan, GfxScreen *screen, GuiResourceId res : _resMan(resMan), _screen(screen), _resourceId(resourceId) { assert(resourceId != -1); initData(resourceId); + _resourceData = 0; } GfxRobot::~GfxRobot() { -- cgit v1.2.3