[Scummvm-cvs-logs] SF.net SVN: scummvm:[53324] scummvm/trunk/engines/sword25/gfx/image/ vectorimage.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Wed Oct 13 01:38:16 CEST 2010
Revision: 53324
http://scummvm.svn.sourceforge.net/scummvm/?rev=53324&view=rev
Author: sev
Date: 2010-10-12 23:38:16 +0000 (Tue, 12 Oct 2010)
Log Message:
-----------
SWORD25: Fix for using uninitialised doubles
Modified Paths:
--------------
scummvm/trunk/engines/sword25/gfx/image/vectorimage.cpp
Modified: scummvm/trunk/engines/sword25/gfx/image/vectorimage.cpp
===================================================================
--- scummvm/trunk/engines/sword25/gfx/image/vectorimage.cpp 2010-10-12 23:37:56 UTC (rev 53323)
+++ scummvm/trunk/engines/sword25/gfx/image/vectorimage.cpp 2010-10-12 23:38:16 UTC (rev 53324)
@@ -191,7 +191,7 @@
// -----------------------------------------------------------------------------
Common::Rect CalculateBoundingBox(const VectorImageElement &vectorImageElement) {
- double x0, y0, x1, y1;
+ double x0 = 0.0, y0 = 0.0, x1 = 0.0, y1 = 0.0;
for (int j = vectorImageElement.getPathCount() - 1; j >= 0; j--) {
ArtBpath *bez = vectorImageElement.getPathInfo(j).getVec();
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