diff --git a/dlls/engine/CVector.h b/dlls/engine/CVector.h index 627e24f1..cdb49355 100755 --- a/dlls/engine/CVector.h +++ b/dlls/engine/CVector.h @@ -240,6 +240,8 @@ public: // constructors / destructors CVector() { + m_Size = 0; + m_CurrentUsedSize = 0; m_Data = NULL; } diff --git a/dlls/pgsql/CVector.h b/dlls/pgsql/CVector.h index 3cb2c4b1..cdb49355 100755 --- a/dlls/pgsql/CVector.h +++ b/dlls/pgsql/CVector.h @@ -240,6 +240,8 @@ public: // constructors / destructors CVector() { + m_Size = 0; + m_CurrentUsedSize = 0; m_Data = NULL; } @@ -328,7 +330,7 @@ public: { if (pos > m_CurrentUsedSize) { - //ASSERT(0); + ASSERT(0); } return m_Data[pos]; } @@ -337,7 +339,7 @@ public: { if (pos > m_CurrentUsedSize) { - //ASSERT(0); + ASSERT(0); } return m_Data[pos]; }