[Scummvm-cvs-logs] SF.net SVN: scummvm: [22520] scummvm/trunk/engines/sword2/resman.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Thu May 18 07:29:10 CEST 2006


Revision: 22520
Author:   eriktorbjorn
Date:     2006-05-18 07:28:19 -0700 (Thu, 18 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22520&view=rev

Log Message:
-----------
Initialise _resList to avoid crash (from freeing an invalid pointer) if the
data files are missing.

Modified Paths:
--------------
    scummvm/trunk/engines/sword2/resman.cpp
Modified: scummvm/trunk/engines/sword2/resman.cpp
===================================================================
--- scummvm/trunk/engines/sword2/resman.cpp	2006-05-18 13:59:20 UTC (rev 22519)
+++ scummvm/trunk/engines/sword2/resman.cpp	2006-05-18 14:28:19 UTC (rev 22520)
@@ -64,6 +64,7 @@
 	_vm = vm;
 
 	_totalClusters = 0;
+	_resList = NULL;
 	_resConvTable = NULL;
 	_cacheStart = NULL;
 	_cacheEnd = NULL;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list