]> git.mxchange.org Git - flightgear.git/commitdiff
forgot a few untie's and fix a small bug
authorehofman <ehofman>
Sun, 16 Aug 2009 19:45:06 +0000 (19:45 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 23 Aug 2009 19:43:08 +0000 (21:43 +0200)
src/Time/light.cxx

index 5050aad3c4aba239840a63049f923d35053fe7a4..280f1abdd93ad1c163483e282942b3efa5b40dc3 100644 (file)
@@ -156,7 +156,7 @@ void FGLight::bind () {
     prop->tie("/rendering/dome/sky/blue",SGRawValuePointer<float>(&_sky_color[2]));
     prop->tie("/rendering/dome/fog/red",SGRawValuePointer<float>(&_fog_color[0]));
     prop->tie("/rendering/dome/fog/green",SGRawValuePointer<float>(&_fog_color[1]));
-    prop->tie("/rendering/dome/fog/blue",SGRawValuePointer<float>(&_fog_color[1]));
+    prop->tie("/rendering/dome/fog/blue",SGRawValuePointer<float>(&_fog_color[2]));
 }
 
 void FGLight::unbind () {
@@ -177,6 +177,9 @@ void FGLight::unbind () {
     prop->untie("/rendering/dome/skyred");
     prop->untie("/rendering/dome/sky/green");
     prop->untie("/rendering/dome/sky/blue");
+    prop->untie("/rendering/dome/fogred");
+    prop->untie("/rendering/dome/fog/green");
+    prop->untie("/rendering/dome/fog/blue");
 }