mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
[Bug Fix] Fix Mercenary Encounter Crash (#4509)
This commit is contained in:
parent
e06b0c4b0c
commit
c873fe5a22
@ -90,8 +90,6 @@ void QuestManager::Process() {
|
|||||||
while (cur != end) {
|
while (cur != end) {
|
||||||
if (cur->Timer_.Enabled() && cur->Timer_.Check()) {
|
if (cur->Timer_.Enabled() && cur->Timer_.Check()) {
|
||||||
if (cur->mob) {
|
if (cur->mob) {
|
||||||
parse->EventMob(EVENT_TIMER, cur->mob, nullptr, [&]() { return cur->name; }, 0);
|
|
||||||
|
|
||||||
if (cur->mob->IsEncounter()) {
|
if (cur->mob->IsEncounter()) {
|
||||||
parse->EventEncounter(
|
parse->EventEncounter(
|
||||||
EVENT_TIMER,
|
EVENT_TIMER,
|
||||||
@ -100,6 +98,8 @@ void QuestManager::Process() {
|
|||||||
0,
|
0,
|
||||||
nullptr
|
nullptr
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
parse->EventMob(EVENT_TIMER, cur->mob, nullptr, [&]() { return cur->name; }, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
//we MUST reset our iterator since the quest could have removed/added any
|
//we MUST reset our iterator since the quest could have removed/added any
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user