#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
+#include <Main/renderer.hxx>
#include <Scenery/scenery.hxx>
#include "precipitation_mgr.hxx"
-extern SGSky *thesky;
-
-
/**
* @brief FGPrecipitation Manager constructor
*
max = SGCloudLayer::SG_MAX_CLOUD_COVERAGES;
result = 0;
+ SGSky* thesky = globals->get_renderer()->getSky();
+
// To avoid messing up
if (thesky == NULL)
return result;