[Scummvm-cvs-logs] SF.net SVN: scummvm:[53212] scummvm/trunk/engines/sword25/math
sev at users.sourceforge.net
sev at users.sourceforge.net
Wed Oct 13 00:24:59 CEST 2010
Revision: 53212
http://scummvm.svn.sourceforge.net/scummvm/?rev=53212&view=rev
Author: sev
Date: 2010-10-12 22:24:58 +0000 (Tue, 12 Oct 2010)
Log Message:
-----------
SWORD25: Fixed some potentially uninitialised variable warnings
Modified Paths:
--------------
scummvm/trunk/engines/sword25/math/geometry_script.cpp
scummvm/trunk/engines/sword25/math/region.cpp
Modified: scummvm/trunk/engines/sword25/math/geometry_script.cpp
===================================================================
--- scummvm/trunk/engines/sword25/math/geometry_script.cpp 2010-10-12 22:24:37 UTC (rev 53211)
+++ scummvm/trunk/engines/sword25/math/geometry_script.cpp 2010-10-12 22:24:58 UTC (rev 53212)
@@ -202,7 +202,7 @@
return 0;
}
- unsigned int RegionHandle;
+ unsigned int RegionHandle = 0;
if (!strcmp(ClassName, REGION_CLASS_NAME)) {
RegionHandle = BS_Region::Create(BS_Region::RT_REGION);
} else if (!strcmp(ClassName, WALKREGION_CLASS_NAME)) {
Modified: scummvm/trunk/engines/sword25/math/region.cpp
===================================================================
--- scummvm/trunk/engines/sword25/math/region.cpp 2010-10-12 22:24:37 UTC (rev 53211)
+++ scummvm/trunk/engines/sword25/math/region.cpp 2010-10-12 22:24:58 UTC (rev 53212)
@@ -60,7 +60,7 @@
// -----------------------------------------------------------------------------
unsigned int BS_Region::Create(REGION_TYPE Type) {
- BS_Region * RegionPtr;
+ BS_Region * RegionPtr = NULL;
switch (Type) {
case RT_REGION:
RegionPtr = new BS_Region();
@@ -85,7 +85,7 @@
Reader.Read(Type);
// Depending on the type, create a new BS_Region or BS_WalkRegion object
- BS_Region * RegionPtr;
+ BS_Region *RegionPtr = NULL;
if (Type == RT_REGION) {
RegionPtr = new BS_Region(Reader, Handle);
} else if (Type == RT_WALKREGION) {
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