Mercurial > mm7
diff BSPModel.cpp @ 2251:47bcb700b74b
for StackLight_TerrainFace
author | Ritor1 |
---|---|
date | Wed, 26 Feb 2014 20:10:43 +0600 |
parents | 75fafd8ced59 |
children | 2e02c384c62b |
line wrap: on
line diff
--- a/BSPModel.cpp Tue Feb 25 20:02:06 2014 +0600 +++ b/BSPModel.cpp Wed Feb 26 20:10:43 2014 +0600 @@ -7,25 +7,16 @@ //----- (00478389) -------------------------------------------------------- void BSPModel::Release() { - BSPModel *v1; // esi@1 - void *v2; // ST00_4@1 - void *v3; // ST00_4@1 - void *v4; // ST00_4@1 - - v1 = this; - free(*(void **)&this->pVertices.pVertices); - v2 = v1->pFaces; - v1->pVertices.pVertices = 0; - free(v2); - v3 = v1->pFacesOrdering; - v1->pFaces = 0; - free(v3); - v4 = v1->pNodes; - v1->pFacesOrdering = 0; - free(v4); - v1->pNodes = 0; - v1->uNumNodes = 0; - v1->uNumFaces = 0; - v1->pVertices.uNumVertices = 0; - v1->uNumConvexFaces = 0; + free(this->pVertices.pVertices); + this->pVertices.pVertices = 0; + free(this->pFaces); + this->pFaces = 0; + free(this->pFacesOrdering); + this->pFacesOrdering = 0; + free(this->pNodes); + this->pNodes = 0; + this->uNumNodes = 0; + this->uNumFaces = 0; + this->pVertices.uNumVertices = 0; + this->uNumConvexFaces = 0; }