Re #591 Fixes crash when abandoning non-Career multi-event races during 1st event
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4574 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 308fac76874b811465ea3fad43b3407057a7796a Former-commit-id: adbc6d63c9ea4ff650e9e39a584206aefd13e42f
This commit is contained in:
parent
383c0dfb5e
commit
b0e51ca92b
1 changed files with 14 additions and 2 deletions
|
@ -86,8 +86,20 @@ int ReConfigure()
|
|||
|
||||
void ReRaceAbandon()
|
||||
{
|
||||
// Shutdown current event.
|
||||
ReRaceEventShutdown();
|
||||
// Notify the UI that the race event is finishing now.
|
||||
ReUI().onRaceEventFinishing();
|
||||
|
||||
// Shutdown track-physics-related stuff.
|
||||
ReTrackShutdown();
|
||||
|
||||
// Cleanup needed stuff.
|
||||
FREEZ(ReInfo->_reCarInfo);
|
||||
|
||||
if (ReInfo->params != ReInfo->mainParams)
|
||||
{
|
||||
GfParmReleaseHandle(ReInfo->params);
|
||||
ReInfo->params = ReInfo->mainParams;
|
||||
}
|
||||
|
||||
// Return to race configuration step
|
||||
ReStateApply((void*)RE_STATE_CONFIG);
|
||||
|
|
Loading…
Reference in a new issue