diff options
author | Torbjörn Andersson | 2006-05-18 14:28:19 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-18 14:28:19 +0000 |
commit | 6b90c405e833d92a388077a08158e144dc5848b9 (patch) | |
tree | 42415fcb1d715b368227d2f20b425a7ab2ef4db3 /engines/sword2 | |
parent | 9e3b78e1e988ec042ab8b20b27246ccf6ba73614 (diff) | |
download | scummvm-rg350-6b90c405e833d92a388077a08158e144dc5848b9.tar.gz scummvm-rg350-6b90c405e833d92a388077a08158e144dc5848b9.tar.bz2 scummvm-rg350-6b90c405e833d92a388077a08158e144dc5848b9.zip |
Initialise _resList to avoid crash (from freeing an invalid pointer) if the
data files are missing.
svn-id: r22520
Diffstat (limited to 'engines/sword2')
-rw-r--r-- | engines/sword2/resman.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sword2/resman.cpp b/engines/sword2/resman.cpp index 5430cf1e82..202ac54065 100644 --- a/engines/sword2/resman.cpp +++ b/engines/sword2/resman.cpp @@ -64,6 +64,7 @@ ResourceManager::ResourceManager(Sword2Engine *vm) { _vm = vm; _totalClusters = 0; + _resList = NULL; _resConvTable = NULL; _cacheStart = NULL; _cacheEnd = NULL; |