mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/Transports: fixed a crash
This commit is contained in:
@@ -296,7 +296,7 @@ void Transport::Update(uint32 diff)
|
||||
if (IsDynamicTransport())
|
||||
{
|
||||
SetCurrentTransportTime(GetCurrentTransportTime() + diff);
|
||||
if (GetCurrentTransportTime() > GetTransportPeriod())
|
||||
if (GetCurrentTransportTime() >= GetTransportPeriod())
|
||||
SetCurrentTransportTime(GetCurrentTransportTime() % GetTransportPeriod());
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user