diff options
author | Paul Gilbert | 2010-10-18 10:58:22 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-10-18 10:58:22 +0000 |
commit | 81f71f48c24e6d0e7c4550b6b6e6372a3d9b14ac (patch) | |
tree | b98b8d42581b6678489fb8d88e8c4d8974f2ac49 /engines/sword25 | |
parent | a5cbff237284d85774ad17eca1ef0e6a5218c62b (diff) | |
download | scummvm-rg350-81f71f48c24e6d0e7c4550b6b6e6372a3d9b14ac.tar.gz scummvm-rg350-81f71f48c24e6d0e7c4550b6b6e6372a3d9b14ac.tar.bz2 scummvm-rg350-81f71f48c24e6d0e7c4550b6b6e6372a3d9b14ac.zip |
SWORD25: Fix Valgrind reported uninitialised errors
svn-id: r53565
Diffstat (limited to 'engines/sword25')
-rw-r--r-- | engines/sword25/gfx/text.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/sword25/gfx/text.cpp b/engines/sword25/gfx/text.cpp index 2089886493..7b54170a26 100644 --- a/engines/sword25/gfx/text.cpp +++ b/engines/sword25/gfx/text.cpp @@ -75,7 +75,13 @@ Text::Text(RenderObjectPtr<RenderObject> ParentPtr) : // ----------------------------------------------------------------------------- Text::Text(InputPersistenceBlock &Reader, RenderObjectPtr<RenderObject> ParentPtr, uint Handle) : - RenderObject(ParentPtr, TYPE_TEXT, Handle) { + RenderObject(ParentPtr, TYPE_TEXT, Handle), + // Temporarily set fields prior to unpersisting actual values + _modulationColor(0xffffffff), + m_AutoWrap(false), + m_AutoWrapThreshold(AUTO_WRAP_THRESHOLD_DEFAULT) { + + // Unpersist the fields _initSuccess = unpersist(Reader); } |