diff --git a/src/modules/graphic/osggraph/OsgMain.cpp b/src/modules/graphic/osggraph/OsgMain.cpp index 4d74703f3..b9536eee0 100644 --- a/src/modules/graphic/osggraph/OsgMain.cpp +++ b/src/modules/graphic/osggraph/OsgMain.cpp @@ -354,8 +354,6 @@ int refresh(tSituation *s) double Z = eye[2]; render->UpdateSky(s->currentTime, s->accelTime, X, Y); - tCarElt* curCar = screens->getActiveView()->getCurrentCar(); - int drawDriver = cam->getDrawDriver(); int drawCurrent = cam->getDrawCurrent(); cars->updateCars(s, curCar, drawCurrent, drawDriver);