mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-26 04:12:34 +01:00
HACK: Prevent a strange crash related to replay cameras.
This commit is contained in:
parent
f4cf0d3f75
commit
475d19db93
@ -1008,8 +1008,12 @@ void PlaceCameraInCar(_PLAYER *lp, int BumperCam)
|
||||
}
|
||||
else
|
||||
{
|
||||
viewer_position.vy = 7;
|
||||
viewer_position.vz = cp->ap.carCos->colBox.vz - 80;
|
||||
// [A] prevent crash from happening
|
||||
if (cp->ap.carCos != NULL)
|
||||
{
|
||||
viewer_position.vy = 7;
|
||||
viewer_position.vz = cp->ap.carCos->colBox.vz - 80;
|
||||
}
|
||||
}
|
||||
|
||||
if ((paddCamera & 3) == 3)
|
||||
|
Loading…
Reference in New Issue
Block a user