Fixed bug in CVector

This commit is contained in:
David Anderson 2004-06-30 08:10:25 +00:00
parent 3dedf9976b
commit 5b8f7e471f
2 changed files with 6 additions and 2 deletions

View File

@ -240,6 +240,8 @@ public:
// constructors / destructors // constructors / destructors
CVector<T>() CVector<T>()
{ {
m_Size = 0;
m_CurrentUsedSize = 0;
m_Data = NULL; m_Data = NULL;
} }

View File

@ -240,6 +240,8 @@ public:
// constructors / destructors // constructors / destructors
CVector<T>() CVector<T>()
{ {
m_Size = 0;
m_CurrentUsedSize = 0;
m_Data = NULL; m_Data = NULL;
} }
@ -328,7 +330,7 @@ public:
{ {
if (pos > m_CurrentUsedSize) if (pos > m_CurrentUsedSize)
{ {
//ASSERT(0); ASSERT(0);
} }
return m_Data[pos]; return m_Data[pos];
} }
@ -337,7 +339,7 @@ public:
{ {
if (pos > m_CurrentUsedSize) if (pos > m_CurrentUsedSize)
{ {
//ASSERT(0); ASSERT(0);
} }
return m_Data[pos]; return m_Data[pos];
} }