Mercurial > might-and-magic-trilogy
comparison BSPModel.cpp @ 0:8b8875f5b359
Initial commit
author | Nomad |
---|---|
date | Fri, 05 Oct 2012 16:07:14 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8b8875f5b359 |
---|---|
1 #include "BSPModel.h" | |
2 #include "Allocator.h" | |
3 | |
4 | |
5 | |
6 //----- (00478389) -------------------------------------------------------- | |
7 void BSPModel::Release() | |
8 { | |
9 BSPModel *v1; // esi@1 | |
10 void *v2; // ST00_4@1 | |
11 void *v3; // ST00_4@1 | |
12 void *v4; // ST00_4@1 | |
13 | |
14 v1 = this; | |
15 pAllocator->FreeChunk(*(void **)&this->pModelName[4]); | |
16 v2 = *(void **)&v1->pModelName[16]; | |
17 *(int *)&v1->pModelName[4] = 0; | |
18 pAllocator->FreeChunk(v2); | |
19 v3 = *(void **)&v1->pModelName[20]; | |
20 *(int *)&v1->pModelName[16] = 0; | |
21 pAllocator->FreeChunk(v3); | |
22 v4 = *(void **)&v1->pModelName[28]; | |
23 *(int *)&v1->pModelName[20] = 0; | |
24 pAllocator->FreeChunk(v4); | |
25 *(int *)&v1->pModelName[28] = 0; | |
26 *(int *)&v1->pModelName[24] = 0; | |
27 *(int *)&v1->pModelName[8] = 0; | |
28 *(int *)&v1->pModelName[0] = 0; | |
29 *(short *)&v1->pModelName[12] = 0; | |
30 } |