mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-07 10:23:53 +00:00
[Player Events] Fix rare out of bound issue when loading event types (#2946)
This commit is contained in:
parent
3949a31246
commit
da20a6ab67
@ -30,6 +30,9 @@ void PlayerEventLogs::Init()
|
||||
std::vector<int> db{};
|
||||
db.reserve(s.size());
|
||||
for (auto &e: s) {
|
||||
if (e.id >= PlayerEvent::MAX) {
|
||||
continue;
|
||||
}
|
||||
m_settings[e.id] = e;
|
||||
db.emplace_back(e.id);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user