another ja2export error that wasn't caught

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Marco Antonio J. Costa
2026-07-27 19:39:23 -03:00
committed by majcosta
co-authored by Claude Opus 5
parent ee4a6b1149
commit ee183510d3
+9 -9
View File
@@ -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);
}
}
};