mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Core/Transport: fix logic error
justStopped was always set true, but when transports spawn and remain stationary timer, _currentFrame->ArriveTime and _currentFrame->DepartureTime are set to 0, making justStopped always remain true and triggering incorrect calls.
This commit is contained in:
@@ -149,8 +149,8 @@ void Transport::Update(uint32 diff)
|
||||
|
||||
if (timer < _currentFrame->DepartureTime)
|
||||
{
|
||||
justStopped = IsMoving();
|
||||
SetMoving(false);
|
||||
justStopped = true;
|
||||
if (_pendingStop && GetGoState() != GO_STATE_READY)
|
||||
{
|
||||
SetGoState(GO_STATE_READY);
|
||||
|
||||
Reference in New Issue
Block a user