Mercurial > might-and-magic-trilogy
diff BSPModel.cpp @ 0:8b8875f5b359
Initial commit
author | Nomad |
---|---|
date | Fri, 05 Oct 2012 16:07:14 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BSPModel.cpp Fri Oct 05 16:07:14 2012 +0200 @@ -0,0 +1,30 @@ +#include "BSPModel.h" +#include "Allocator.h" + + + +//----- (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; + pAllocator->FreeChunk(*(void **)&this->pModelName[4]); + v2 = *(void **)&v1->pModelName[16]; + *(int *)&v1->pModelName[4] = 0; + pAllocator->FreeChunk(v2); + v3 = *(void **)&v1->pModelName[20]; + *(int *)&v1->pModelName[16] = 0; + pAllocator->FreeChunk(v3); + v4 = *(void **)&v1->pModelName[28]; + *(int *)&v1->pModelName[20] = 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; +}