Skip to content

Commit 9c6829b

Browse files
committed
xrGame: remove Valgrind warning "Uninitialised value was created by a stack allocation"
1 parent c779d48 commit 9c6829b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/xrGame/player_hud.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ void player_hud::update_inertion(Fmatrix& trans)
664664

665665
// clamp by PI_DIV_2
666666
Fvector last;
667+
last.set(0,0,0);
667668
last.normalize_safe(st_last_dir);
668669
float dot = last.dotproduct(xform.k);
669670
if (dot < EPS)

0 commit comments

Comments
 (0)