Update dGame/dComponents/PropertyManagementComponent.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Aaron Kimbrell
2026-04-05 03:25:09 -05:00
committed by GitHub
parent bdb06b4706
commit 6a5fe599ad

View File

@@ -900,6 +900,10 @@ void PropertyManagementComponent::Update(float deltaTime) {
// Check for day rollover
const auto currentDate = GeneralUtils::GetCurrentUTCDate();
if (currentDate != m_CurrentDate) {
if (m_ReputationDirty) {
LOG_DEBUG("Saving dirty reputation data before daily rollover for property %llu", static_cast<unsigned long long>(propertyId));
SaveReputation();
}
m_CurrentDate = currentDate;
m_PlayerActivity.clear();
}