It appears there's a couple of bugs in the transient initialization code which is causing (at least) my version of handmade to crash (both days 85 & 86).
| transient_state *TranState = (transient_state *)Memory->TransientStorageSize;
|
Should be:
| transient_state *TranState = (transient_state *)Memory->TransientStorage;
|
And:
| InitializeArena(&TranState->TranArena, Memory->TransientStorageSize - sizeof(transient_state), (uint8 *)Memory->TransientStorageSize + sizeof(transient_state));
|
Should be:
| InitializeArena(&TranState->TranArena, Memory->TransientStorageSize - sizeof(transient_state), (uint8 *)Memory->TransientStorage + sizeof(transient_state));
|