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:
ragnarok-clanker 2026-11-10 15:48:13 +00:00
commit 038eb51cfe

View file

@ -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