From b7dbbc614120d219ef538ae6456ce5e71465a486 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Wed, 30 Jun 2004 06:46:32 +0000 Subject: Initialise _numImages to zero, along with the other _num variables. This fixes a Valgrind error, and the "Invalid allocation size" errors I got when running ScummVM in GDB under MinGW yesterday. svn-id: r14129 --- scumm/scumm.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp index 815af134f4..b5aa719e65 100644 --- a/scumm/scumm.cpp +++ b/scumm/scumm.cpp @@ -449,6 +449,7 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst, const ScummGameS _numGlobalScripts = 0; _numActors = 0; _numCostumes = 0; + _numImages = 0; _audioNames = NULL; _numAudioNames = 0; _curActor = 0; -- cgit v1.2.3