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;