Mercurial > mm7
changeset 72:55e3aa43021d
quitting game crash fix
author | zipi |
---|---|
date | Sun, 27 Jan 2013 15:49:25 +0000 |
parents | 2b90f29892ae |
children | 0a7860ded5c2 |
files | BSPModel.cpp |
diffstat | 1 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/BSPModel.cpp Sun Jan 27 14:15:50 2013 +0000 +++ b/BSPModel.cpp Sun Jan 27 15:49:25 2013 +0000 @@ -12,19 +12,19 @@ void *v4; // ST00_4@1 v1 = this; - pAllocator->FreeChunk(*(void **)&this->pModelName[4]); - v2 = *(void **)&v1->pModelName[16]; - *(int *)&v1->pModelName[4] = 0; + pAllocator->FreeChunk(*(void **)&this->pVertices.pVertices); + v2 = v1->pFaces; + v1->pVertices.pVertices = 0; pAllocator->FreeChunk(v2); - v3 = *(void **)&v1->pModelName[20]; - *(int *)&v1->pModelName[16] = 0; + v3 = v1->pFacesOrdering; + v1->pFaces = 0; pAllocator->FreeChunk(v3); - v4 = *(void **)&v1->pModelName[28]; - *(int *)&v1->pModelName[20] = 0; + v4 = v1->pNodes; + v1->pFacesOrdering = 0; pAllocator->FreeChunk(v4); - *(int *)&v1->pModelName[28] = 0; - *(int *)&v1->pModelName[24] = 0; - *(int *)&v1->pModelName[8] = 0; - *(int *)&v1->pModelName[0] = 0; - *(short *)&v1->pModelName[12] = 0; + v1->pNodes = 0; + v1->uNumNodes = 0; + v1->uNumFaces = 0; + v1->pVertices.uNumVertices = 0; + v1->uNumConvexFaces = 0; }