Core/Transports: Fix triggering transport arrival events on stop waypoints

Port From (https://github.com/TrinityCore/TrinityCore/commit/b4ccc8268b72e35b97caba1dcd36e9bdd0af3eea)
This commit is contained in:
Hondacrx
2025-08-10 12:28:03 -04:00
parent 31d42fa21f
commit 70f313866f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ namespace Game.Entities
if (eventToTriggerIndex != -1)
{
while (eventToTriggerIndex < _transportInfo.Events.Count && _transportInfo.Events[eventToTriggerIndex].Timestamp < timer)
while (eventToTriggerIndex < _transportInfo.Events.Count && _transportInfo.Events[eventToTriggerIndex].Timestamp <= timer)
{
TransportPathLeg leg = _transportInfo.GetLegForTime(_transportInfo.Events[eventToTriggerIndex].Timestamp);
if (leg != null)