aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llwldaycycle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llwldaycycle.cpp')
-rw-r--r--linden/indra/newview/llwldaycycle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/llwldaycycle.cpp b/linden/indra/newview/llwldaycycle.cpp
index 1d17c60..07ac2a4 100644
--- a/linden/indra/newview/llwldaycycle.cpp
+++ b/linden/indra/newview/llwldaycycle.cpp
@@ -51,9 +51,6 @@ LLWLDayCycle::~LLWLDayCycle()
51 51
52void LLWLDayCycle::loadDayCycle(const std::string & fileName) 52void LLWLDayCycle::loadDayCycle(const std::string & fileName)
53{ 53{
54 // clear the first few things
55 mTimeMap.clear();
56
57 // now load the file 54 // now load the file
58 std::string pathName(gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, 55 std::string pathName(gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS,
59 "windlight/days", fileName)); 56 "windlight/days", fileName));
@@ -62,6 +59,9 @@ void LLWLDayCycle::loadDayCycle(const std::string & fileName)
62 llifstream day_cycle_xml(pathName); 59 llifstream day_cycle_xml(pathName);
63 if (day_cycle_xml.is_open()) 60 if (day_cycle_xml.is_open())
64 { 61 {
62 // clear the first few things
63 mTimeMap.clear();
64
65 // load and parse it 65 // load and parse it
66 LLSD day_data(LLSD::emptyArray()); 66 LLSD day_data(LLSD::emptyArray());
67 LLPointer<LLSDParser> parser = new LLSDXMLParser(); 67 LLPointer<LLSDParser> parser = new LLSDXMLParser();