From: david Date: Fri, 7 Jun 2002 19:43:40 +0000 (+0000) Subject: Patch from Melchior Franz: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e6f9caa41ba1c7ceaeb0c1137419be2a97d8da1f;p=flightgear.git Patch from Melchior Franz: FGViewer::updateFromModelLocation does otherwise complain several times about non-initialized values --- diff --git a/src/Main/location.cxx b/src/Main/location.cxx index fcca883f7..55196e99e 100644 --- a/src/Main/location.cxx +++ b/src/Main/location.cxx @@ -118,6 +118,10 @@ FGLocation::FGLocation( void ): _tile_center(0) { sgdZeroVec3(_absolute_view_pos); + sgZeroVec3(_relative_view_pos); + sgZeroVec3(_zero_elev_view_pos); + sgMakeRotMat4( UP, 0.0, 0.0, 0.0 ); + sgMakeRotMat4( TRANS, 0.0, 0.0, 0.0 ); }