mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed bug in CVector
This commit is contained in:
parent
3dedf9976b
commit
5b8f7e471f
@ -240,6 +240,8 @@ public:
|
||||
// constructors / destructors
|
||||
CVector<T>()
|
||||
{
|
||||
m_Size = 0;
|
||||
m_CurrentUsedSize = 0;
|
||||
m_Data = NULL;
|
||||
}
|
||||
|
||||
|
@ -240,6 +240,8 @@ public:
|
||||
// constructors / destructors
|
||||
CVector<T>()
|
||||
{
|
||||
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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user