forked from speed-dreams/speed-dreams-code
Bug #796 - fix SegFault at race quit
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5315 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 0a14175b656b0245c1be71e71b1fcefd609bb9a0 Former-commit-id: 5c9b5f14d5254dbb419f7e0a03334f6b9bdef4a1
This commit is contained in:
parent
d7c95ed6c6
commit
821b69c5a1
1 changed files with 3 additions and 0 deletions
|
@ -169,6 +169,9 @@ void cGrScreen::setCurrentCar(tCarElt *newCurCar)
|
||||||
{
|
{
|
||||||
curCar = newCurCar;
|
curCar = newCurCar;
|
||||||
|
|
||||||
|
// probably don't want to clear entry in 'graph.xml'
|
||||||
|
if (newCurCar == NULL) return;
|
||||||
|
|
||||||
if (curCar)
|
if (curCar)
|
||||||
{
|
{
|
||||||
sprintf(path, "%s/%d", GR_SCT_DISPMODE, id);
|
sprintf(path, "%s/%d", GR_SCT_DISPMODE, id);
|
||||||
|
|
Loading…
Reference in a new issue