summaryrefslogtreecommitdiff
path: root/indra/llinventory/llparcel.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2018-01-25 17:21:25 -0800
committerRider Linden <rider@lindenlab.com>2018-01-25 17:21:25 -0800
commitfbd8a98300277bdbc1885c25eea290560fd8c6c1 (patch)
tree93279d01ba2db5ba25d7fdffe69f46df29e8ed3b /indra/llinventory/llparcel.cpp
parent9b05a8d1cde1d54e60bf4ead021372427c7d11fd (diff)
Selects correct day cycle. Fix an error validating legacy daycycles.
Diffstat (limited to 'indra/llinventory/llparcel.cpp')
-rw-r--r--indra/llinventory/llparcel.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llinventory/llparcel.cpp b/indra/llinventory/llparcel.cpp
index f53ef5e0ff..411c35ed6b 100644
--- a/indra/llinventory/llparcel.cpp
+++ b/indra/llinventory/llparcel.cpp
@@ -236,6 +236,7 @@ void LLParcel::init(const LLUUID &owner_id,
mDayOffset = S64Seconds(LLSettingsDay::DEFAULT_DAYOFFSET);
mIsDefaultDayCycle = true;
mDayCycle.reset();
+ mDayCycleHash = 0;
}
void LLParcel::overrideOwner(const LLUUID& owner_id, BOOL is_group_owned)
@@ -1272,3 +1273,12 @@ U32 LLParcel::countExperienceKeyType( U32 type )
boost::end(mExperienceKeys | boost::adaptors::map_values),
std::bind2nd(std::equal_to<U32>(), type));
}
+
+void LLParcel::clearParcelDayCycleInfo()
+{
+ mDayLength = S64Seconds(LLSettingsDay::DEFAULT_DAYLENGTH);
+ mDayOffset = S64Seconds(LLSettingsDay::DEFAULT_DAYOFFSET);
+ mIsDefaultDayCycle = true;
+ mDayCycle.reset();
+ mDayCycleHash = 0;
+}