[IGfxWorld] Fix aabbtree structure

This commit is contained in:
momo5502 2017-03-19 00:24:11 +01:00
parent 45147ec8ea
commit 3b6c502368
2 changed files with 3 additions and 2 deletions

View File

@ -1053,7 +1053,7 @@ namespace Assets
{
buffer->align(Utils::Stream::ALIGN_2);
for (int k = 0; k < aabbTree->smodelIndexCount; ++k)
for (unsigned short k = 0; k < aabbTree->smodelIndexCount; ++k)
{
builder->storePointer(&aabbTree->smodelIndexes[k]);
buffer->save(&aabbTree->smodelIndexes[k]);

View File

@ -2959,10 +2959,11 @@ namespace Game
{
float mins[3];
float maxs[3];
int pad;
unsigned __int16 childCount;
unsigned __int16 surfaceCount;
unsigned __int16 startSurfIndex;
unsigned __int16 surfaceCountNoDecal;
unsigned __int16 startSurfIndexNoDecal;
unsigned __int16 smodelIndexCount;
unsigned __int16 *smodelIndexes;
int childrenOffset;