StorM a36df4c4c0 Fix crash in Mardum Illidari target selection
Fix a worldserver freeze/crash caused by npc_illidari_fighting_invasion_begins
in Broken Isles / Mardum.

GetNextTarget() could call SelectRandomContainerElement() with an empty
target list when no valid hostile units were found.

This caused the map update worker to hang and eventually triggered the
worldserver FreezeDetector after 60 seconds.

Fix:
- Check if targetList is empty before selecting a random target.
- Return nullptr when no valid target is available.
- ScheduleTargetSelection() already handles nullptr and retries after 500ms.

Crash:
World Thread hangs for 60010 ms, forcing a crash!

File:
src/server/scripts/BrokenIsles/zone_mardum.cpp
2026-10-06 21:39:04 +02:00
2026-06-25 18:17:08 -03:00
2026-08-09 19:33:46 -03:00
2026-01-20 21:29:54 -03:00
2026-10-06 05:11:18 -03:00
2026-07-16 23:01:07 -03:00
2026-01-20 21:25:30 -03:00
2026-01-20 21:25:30 -03:00
2026-01-20 21:25:30 -03:00
2026-09-23 11:05:45 -03:00
S
Description
No description provided
Readme
319 MiB
Languages
C++ 89.6%
C 9.9%
CMake 0.3%