warning fix

This commit is contained in:
Ovahlord committed 2021-11-10 16:56:54 +01:00
1 parent 5ca475a764
commit c220644db1
1 file changed
+2 -2
+2 -2
View File
@@ -13848,7 +13848,7 @@ void Unit::CheckPendingMovementAcks()
if (!HasPendingMovementChange())
return;
for (std::pair<MovementChangeType, PlayerMovementPendingChange> const& pendingChange : m_pendingMovementChanges)
for (std::pair<MovementChangeType, PlayerMovementPendingChange> const pendingChange : m_pendingMovementChanges)
{
if (GameTime::GetGameTimeMS() > pendingChange.second.time + sWorld->getIntConfig(CONFIG_PENDING_MOVE_CHANGES_TIMEOUT))
{
@@ -13876,7 +13876,7 @@ void Unit::CheckPendingMovementAcks()
void Unit::PurgeAndApplyPendingMovementChanges(bool informObservers /* = true */)
{
for (std::pair<MovementChangeType, PlayerMovementPendingChange> const& pendingChange : m_pendingMovementChanges)
for (std::pair<MovementChangeType, PlayerMovementPendingChange> const pendingChange : m_pendingMovementChanges)
{
float speedFlat = pendingChange.second.newValue;
MovementChangeType changeType = pendingChange.second.movementChangeType;