Decompile fn_02009 (ModelMesh::~ModelMesh)
Batch #16225 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_02009 ModelMesh::~ModelMesh: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
2c1179d287
commit
038eb51cfe
1 changed files with 20 additions and 10 deletions
|
|
@ -30,19 +30,29 @@ ModelMesh::ModelMesh()
|
|||
// OFFSET: 0x00551E80
|
||||
// FUNCTION: fn_02009
|
||||
ModelMesh::~ModelMesh() {
|
||||
delete[] this->vertices;
|
||||
this->vertices = nullptr;
|
||||
if (this->vertices) {
|
||||
delete[] this->vertices;
|
||||
this->vertices = nullptr;
|
||||
}
|
||||
this->vertexCount = 0;
|
||||
delete[] this->faces;
|
||||
this->faces = nullptr;
|
||||
if (this->faces) {
|
||||
delete[] this->faces;
|
||||
this->faces = nullptr;
|
||||
}
|
||||
this->faceCount = 0;
|
||||
delete[] this->textureVertices;
|
||||
this->textureVertices = nullptr;
|
||||
if (this->textureVertices) {
|
||||
delete[] this->textureVertices;
|
||||
this->textureVertices = nullptr;
|
||||
}
|
||||
this->textureVertexCount = 0;
|
||||
delete[] this->faceNormals;
|
||||
this->faceNormals = nullptr;
|
||||
delete[] this->vertexNormals;
|
||||
this->vertexNormals = nullptr;
|
||||
if (this->faceNormals) {
|
||||
delete[] this->faceNormals;
|
||||
this->faceNormals = nullptr;
|
||||
}
|
||||
if (this->vertexNormals) {
|
||||
delete[] this->vertexNormals;
|
||||
this->vertexNormals = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00551F80
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue