mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
another ja2export error that wasn't caught
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
committed by
majcosta
co-authored by
Claude Opus 5
parent
ee4a6b1149
commit
ee183510d3
@@ -50,13 +50,13 @@ namespace sgp
|
||||
public:
|
||||
AutoArray(size_t size)
|
||||
{
|
||||
_array = new T[size];
|
||||
this->_array = new T[size];
|
||||
}
|
||||
~AutoArray()
|
||||
{
|
||||
if(_array)
|
||||
if(this->_array)
|
||||
{
|
||||
delete[] _array;
|
||||
delete[] this->_array;
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -69,13 +69,13 @@ namespace sgp
|
||||
public:
|
||||
AutoCArray(size_t size = 1, size_t sizeof_elem=1)
|
||||
{
|
||||
_array = (T*)Alloc( size * sizeof_elem );
|
||||
this->_array = (T*)Alloc( size * sizeof_elem );
|
||||
}
|
||||
~AutoCArray()
|
||||
{
|
||||
if(_array)
|
||||
if(this->_array)
|
||||
{
|
||||
Dealloc(_array);
|
||||
Dealloc(this->_array);
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -95,13 +95,13 @@ namespace sgp
|
||||
public:
|
||||
AutoMMArray(size_t size, size_t sizeof_elem=1)
|
||||
{
|
||||
_array = (T*)MemAlloc( size * sizeof_elem );
|
||||
this->_array = (T*)MemAlloc( size * sizeof_elem );
|
||||
}
|
||||
~AutoMMArray()
|
||||
{
|
||||
if(_array)
|
||||
if(this->_array)
|
||||
{
|
||||
MemFree(_array);
|
||||
MemFree(this->_array);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user