mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-03 15:22:24 +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{};
|
std::vector<int> db{};
|
||||||
db.reserve(s.size());
|
db.reserve(s.size());
|
||||||
for (auto &e: s) {
|
for (auto &e: s) {
|
||||||
|
if (e.id >= PlayerEvent::MAX) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
m_settings[e.id] = e;
|
m_settings[e.id] = e;
|
||||||
db.emplace_back(e.id);
|
db.emplace_back(e.id);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user