[Performance] Clear Wearchange Deduplication Cache (#4960)

* [Performance] Clear Wearchange Deduplication Cache

* Move timers to process loops
This commit is contained in:
Chris Miles
2025-06-30 13:57:43 -05:00
committed by GitHub
parent 07d484597d
commit 659a960401
4 changed files with 10 additions and 0 deletions
+4
View File
@@ -632,6 +632,10 @@ bool NPC::Process()
}
if (tic_timer.Check()) {
if (m_clear_wearchange_cache_timer.Check()) {
m_last_seen_wearchange.clear();
}
if (parse->HasQuestSub(GetNPCTypeID(), EVENT_TICK)) {
parse->EventNPC(EVENT_TICK, this, nullptr, "", 0);
}