Core/Transports: fixed a crash

This commit is contained in:
Ovahlord
2019-05-24 13:56:09 +02:00
parent 2ab09b28c2
commit ebe6ae70bf

View File

@@ -296,7 +296,7 @@ void Transport::Update(uint32 diff)
if (IsDynamicTransport())
{
SetCurrentTransportTime(GetCurrentTransportTime() + diff);
if (GetCurrentTransportTime() > GetTransportPeriod())
if (GetCurrentTransportTime() >= GetTransportPeriod())
SetCurrentTransportTime(GetCurrentTransportTime() % GetTransportPeriod());
}
else