client: view: fix reading from uninitialized variable when setting model angles from camera angles (#329)

This commit is contained in:
Alibek Omarov 2022-09-19 21:35:26 +03:00 committed by GitHub
parent 1394637ce8
commit 63ce6eda31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -735,7 +735,7 @@ void V_CalcNormalRefdef( struct ref_params_s *pparams )
// Apply this at all times
{
float pitch = camAngles[0];
float pitch = pparams->viewangles[0];
// Normalize angles
if( pitch > 180.0f )