From ee183510d3054390b4cd169603bb702d00947127 Mon Sep 17 00:00:00 2001 From: "Marco Antonio J. Costa" Date: Mon, 27 Jul 2026 18:20:52 -0300 Subject: [PATCH] another ja2export error that wasn't caught Co-Authored-By: Claude Opus 5 --- sgp/sgp_auto_memory.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sgp/sgp_auto_memory.h b/sgp/sgp_auto_memory.h index aac24df99..26bac77ce 100644 --- a/sgp/sgp_auto_memory.h +++ b/sgp/sgp_auto_memory.h @@ -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); } } };