mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
[Crash] Fix player events reload when out of bounds (#4321)
This commit is contained in:
parent
3a51f04291
commit
2586527157
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user