From: david Date: Thu, 25 Apr 2002 14:55:40 +0000 (+0000) Subject: Patch from Melchior Franz: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0136fdadbba2e8af971d29776fe3cacda88c6b98;p=simgear.git Patch from Melchior Franz: magvar and magdip are used before their initialization --- diff --git a/simgear/magvar/magvar.cxx b/simgear/magvar/magvar.cxx index 4a78ce34..91ea7dec 100644 --- a/simgear/magvar/magvar.cxx +++ b/simgear/magvar/magvar.cxx @@ -29,7 +29,10 @@ #include "magvar.hxx" -SGMagVar::SGMagVar() { +SGMagVar::SGMagVar() + : magvar(0.0), + magdip(0.0) +{ } SGMagVar::~SGMagVar() {