]> git.mxchange.org Git - simgear.git/commitdiff
Patch from Melchior Franz:
authordavid <david>
Thu, 25 Apr 2002 14:55:40 +0000 (14:55 +0000)
committerdavid <david>
Thu, 25 Apr 2002 14:55:40 +0000 (14:55 +0000)
magvar and magdip are used before their initialization

simgear/magvar/magvar.cxx

index 4a78ce34dad291440b3f236e88ae06e10665dc30..91ea7dec7b4d40314333e58b5e1cc10536851e8a 100644 (file)
 #include "magvar.hxx"
 
 
-SGMagVar::SGMagVar() {
+SGMagVar::SGMagVar()
+  : magvar(0.0),
+    magdip(0.0)
+{
 }
 
 SGMagVar::~SGMagVar() {