]> git.mxchange.org Git - flightgear.git/commitdiff
Patch from Melchior Franz:
authordavid <david>
Fri, 7 Jun 2002 19:43:40 +0000 (19:43 +0000)
committerdavid <david>
Fri, 7 Jun 2002 19:43:40 +0000 (19:43 +0000)
FGViewer::updateFromModelLocation does otherwise complain several
times about non-initialized values

src/Main/location.cxx

index fcca883f7f51103626d3a8be68b9164f904318d9..55196e99e098e9433b90329d504f86a56f4e6bc2 100644 (file)
@@ -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 );
 }