mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-05 22:09:59 +03:00
fix address sanitizer issues
This commit is contained in:
@@ -42,7 +42,7 @@ public:
|
||||
Polyhedron_IndexedLine_t *pLines;
|
||||
Polyhedron_IndexedLineReference_t *pIndices;
|
||||
Polyhedron_IndexedPolygon_t *pPolygons;
|
||||
|
||||
|
||||
unsigned short iVertexCount;
|
||||
unsigned short iLineCount;
|
||||
unsigned short iIndexCount;
|
||||
@@ -53,10 +53,10 @@ public:
|
||||
Vector Center( void );
|
||||
};
|
||||
|
||||
class CPolyhedron_AllocByNew : public CPolyhedron
|
||||
class CPolyhedron_AllocByNew final : public CPolyhedron
|
||||
{
|
||||
public:
|
||||
virtual void Release( void );
|
||||
void Release( void ) override;
|
||||
static CPolyhedron_AllocByNew *Allocate( unsigned short iVertices, unsigned short iLines, unsigned short iIndices, unsigned short iPolygons ); //creates the polyhedron along with enough memory to hold all it's data in a single allocation
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user