[IclipMap_t] Store pointers for other structs as well. Should fix other collision related crashes
This commit is contained in:
parent
d075617328
commit
fb8f618ddc
@ -32,9 +32,13 @@ namespace Assets
|
||||
else
|
||||
{
|
||||
buffer->align(Utils::Stream::ALIGN_4);
|
||||
builder->storePointer(asset->cPlanes);
|
||||
|
||||
buffer->saveArray(asset->cPlanes, asset->numCPlanes);
|
||||
// not sure if this is neede but both brushside and brushedge need it and it can't hurt
|
||||
for(int i = 0; i < asset->numCPlanes; i++)
|
||||
{
|
||||
builder->storePointer(&asset->cPlanes[i]);
|
||||
buffer->save(&asset->cPlanes[i]);
|
||||
}
|
||||
Utils::Stream::ClearPointer(&dest->cPlanes);
|
||||
}
|
||||
|
||||
@ -127,7 +131,11 @@ namespace Assets
|
||||
SaveLogEnter("cBrushEdge");
|
||||
|
||||
// no align for char
|
||||
buffer->saveArray(asset->cBrushEdges, asset->numCBrushEdges);
|
||||
for(int i = 0; i < asset->numCBrushEdges; ++i)
|
||||
{
|
||||
builder->storePointer(&asset->cBrushEdges[i]); // for reference in cBrush
|
||||
buffer->save(&asset->cBrushEdges[i]);
|
||||
}
|
||||
Utils::Stream::ClearPointer(&dest->cBrushEdges);
|
||||
|
||||
SaveLogExit();
|
||||
|
@ -1645,6 +1645,8 @@ namespace Components
|
||||
#ifdef DEBUG
|
||||
// Easy dirty disk debugging
|
||||
Utils::Hook::Set<WORD>(0x4CF7F0, 0xC3CC);
|
||||
// disable _invoke_watson to allow debugging
|
||||
Utils::Hook::Set<WORD>(0x6B9602,0xCCCC);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user