mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
[Crash] Fix crash bug with pbae and quest scripts spawning mobs (#4884)
If a PBAE is in progress while a mob pops it can cause a crash. Forcing a copy before the ae has a chance to pop a mob should fix the weirdness
This commit is contained in:
parent
138612bc88
commit
21bd906a4d
@ -1125,8 +1125,8 @@ void EntityList::AESpell(
|
|||||||
RuleI(Range, MobCloseScanDistance),
|
RuleI(Range, MobCloseScanDistance),
|
||||||
distance
|
distance
|
||||||
);
|
);
|
||||||
|
auto list = caster_mob->GetCloseMobList(distance);
|
||||||
for (auto& it: caster_mob->GetCloseMobList(distance)) {
|
for (auto& it: list) {
|
||||||
current_mob = it.second;
|
current_mob = it.second;
|
||||||
if (!current_mob) {
|
if (!current_mob) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user