From 998622ff5481bfeaae12bf82feb171cc35226c05 Mon Sep 17 00:00:00 2001 From: prefect Date: Sat, 29 Oct 2005 22:50:54 +0000 Subject: [PATCH] Initialize some previously uninitialized variables. This was SVN commit r3050. --- source/gui/CGUISprite.cpp | 2 ++ source/ps/Interact.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/source/gui/CGUISprite.cpp b/source/gui/CGUISprite.cpp index 95315b23e6..4a0f525eca 100755 --- a/source/gui/CGUISprite.cpp +++ b/source/gui/CGUISprite.cpp @@ -15,6 +15,7 @@ void CGUISpriteInstance::Draw(CRect Size, int CellID, std::map void CGUISpriteInstance::Invalidate() { m_CachedSize = CRect(); + m_CachedCellID = -1; } bool CGUISpriteInstance::IsEmpty() const @@ -27,6 +28,7 @@ bool CGUISpriteInstance::IsEmpty() const // of data): CGUISpriteInstance::CGUISpriteInstance() + : m_CachedCellID(-1) { } diff --git a/source/ps/Interact.h b/source/ps/Interact.h index b61e816993..dd3cffddca 100755 --- a/source/ps/Interact.h +++ b/source/ps/Interact.h @@ -122,6 +122,8 @@ struct CBuildingPlacer : public Singleton CBuildingPlacer() { m_active = false; + m_actor = 0; + m_bounds = 0; } CStrW m_templateName;