HasEvents

This commit is contained in:
天鹭 2025-10-17 13:55:29 +08:00
parent 12c56e2a3b
commit 832b3091f0
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ class EventProcessor
[[nodiscard]] uint64 CalculateQueueTime(uint64 delay) const;
void CancelEventGroup(uint8 group);
bool HaveEventList() const { return !m_events.empty(); }
bool HasEvents() const { return !m_events.empty(); }
protected:
uint64 m_time{0};

View File

@ -172,7 +172,7 @@ public:
// currently unused for normal maps
bool CanUnload(uint32 diff)
{
if (!m_unloadTimer || Events.HaveEventList())
if (!m_unloadTimer || Events.HasEvents())
return false;
if (m_unloadTimer <= diff)