From 8c296d96c767aee6fe17ac3737bb71239893e154 Mon Sep 17 00:00:00 2001 From: ehofman Date: Mon, 19 Jan 2004 13:37:26 +0000 Subject: [PATCH] Fix an initialization problem --- simgear/scene/sky/moon.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simgear/scene/sky/moon.cxx b/simgear/scene/sky/moon.cxx index 7eed9c5c..dd280f69 100644 --- a/simgear/scene/sky/moon.cxx +++ b/simgear/scene/sky/moon.cxx @@ -118,7 +118,9 @@ static int sgMoonHaloPostDraw( ssgEntity *e ) { // Constructor -SGMoon::SGMoon( void ) { +SGMoon::SGMoon( void ) : + prev_moon_angle(-1) +{ } -- 2.39.5