mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 21:58:22 +00:00
[Crash] Fix player events reload when out of bounds (#4321)
This commit is contained in:
@@ -642,6 +642,10 @@ void PlayerEventLogs::ProcessRetentionTruncation()
|
|||||||
void PlayerEventLogs::ReloadSettings()
|
void PlayerEventLogs::ReloadSettings()
|
||||||
{
|
{
|
||||||
for (auto &e: PlayerEventLogSettingsRepository::All(*m_database)) {
|
for (auto &e: PlayerEventLogSettingsRepository::All(*m_database)) {
|
||||||
|
if (e.id >= PlayerEvent::MAX || e.id < 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
m_settings[e.id] = e;
|
m_settings[e.id] = e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user