Skip to content

Commit

Permalink
xrGame: remove Valgrind warning "Uninitialised value was created by a…
Browse files Browse the repository at this point in the history
… stack allocation"
  • Loading branch information
eagleivg committed Nov 8, 2018
1 parent c779d48 commit 9c6829b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/xrGame/player_hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ void player_hud::update_inertion(Fmatrix& trans)

// clamp by PI_DIV_2
Fvector last;
last.set(0,0,0);
last.normalize_safe(st_last_dir);
float dot = last.dotproduct(xform.k);
if (dot < EPS)
Expand Down

0 comments on commit 9c6829b

Please sign in to comment.