diff options
author | Torbjörn Andersson | 2004-06-30 06:46:32 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-06-30 06:46:32 +0000 |
commit | b7dbbc614120d219ef538ae6456ce5e71465a486 (patch) | |
tree | b300c5fb4242f9f3abc58310741c5b79984f022e | |
parent | 4f80e2f36bcee0862f1360cae2b69ba7f0ad5732 (diff) | |
download | scummvm-rg350-b7dbbc614120d219ef538ae6456ce5e71465a486.tar.gz scummvm-rg350-b7dbbc614120d219ef538ae6456ce5e71465a486.tar.bz2 scummvm-rg350-b7dbbc614120d219ef538ae6456ce5e71465a486.zip |
Initialise _numImages to zero, along with the other _num<whatever>
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
-rw-r--r-- | scumm/scumm.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |