From 5b8f7e471f4445a8b8507871c75a86e9cc03aaf9 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 30 Jun 2004 08:10:25 +0000 Subject: [PATCH] Fixed bug in CVector --- dlls/engine/CVector.h | 2 ++ dlls/pgsql/CVector.h | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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]; }