From: James Turner Date: Tue, 5 Nov 2013 05:30:11 +0000 (+0000) Subject: Reset: drop FGLight prop refs on unbind() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9a77efacd9b28893599655c056a2fa399859f663;p=flightgear.git Reset: drop FGLight prop refs on unbind() --- diff --git a/src/Time/light.cxx b/src/Time/light.cxx index 3d59e804a..5cdf21c33 100644 --- a/src/Time/light.cxx +++ b/src/Time/light.cxx @@ -189,6 +189,11 @@ void FGLight::bind () { void FGLight::unbind () { _tiedProperties.Untie(); + + for (int i = 0; i < 4; ++i) + _chromeProps[i] = SGPropertyNode_ptr(); + _sunAngleRad = SGPropertyNode_ptr(); + _humidity = SGPropertyNode_ptr(); }