Core/Transports: fixed a crash
This commit is contained in:
1 parent
2ab09b28c2
commit
ebe6ae70bf
1 file changed
+1
-1
@@ -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