mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 00:49:19 +02:00
Check if Train pointer is not nullptr
This commit is contained in:
@@ -597,7 +597,7 @@ void driver_mode::update_camera(double const Deltatime)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (false == FreeFlyModeFlag)
|
||||
if (false == FreeFlyModeFlag && simulation::Train)
|
||||
{
|
||||
// reset cached view angle in the cab
|
||||
simulation::Train->pMechViewAngle = {Camera.Angle.x, Camera.Angle.y};
|
||||
|
||||
Reference in New Issue
Block a user