warning fixes
This commit is contained in:
1 parent
a204e9c61a
commit
7bf3379df5
1 file changed
+2
-2
@@ -14050,7 +14050,7 @@ void Unit::CheckPendingMovementAcks()
|
||||
if (!HasPendingMovementChange())
|
||||
return;
|
||||
|
||||
for (std::pair<MovementChangeType, PlayerMovementPendingChange> const& pendingChange : m_pendingMovementChanges)
|
||||
for (std::pair<MovementChangeType const, PlayerMovementPendingChange const> const& pendingChange : m_pendingMovementChanges)
|
||||
{
|
||||
if (GameTime::GetGameTimeMS() > pendingChange.second.time + sWorld->getIntConfig(CONFIG_PENDING_MOVE_CHANGES_TIMEOUT))
|
||||
{
|
||||
@@ -14078,7 +14078,7 @@ void Unit::CheckPendingMovementAcks()
|
||||
|
||||
void Unit::PurgeAndApplyPendingMovementChanges(bool informObservers /* = true */)
|
||||
{
|
||||
for (std::pair<MovementChangeType, PlayerMovementPendingChange> const& pendingChange : m_pendingMovementChanges)
|
||||
for (std::pair<MovementChangeType const, PlayerMovementPendingChange const> const& pendingChange : m_pendingMovementChanges)
|
||||
{
|
||||
float speedFlat = pendingChange.second.newValue;
|
||||
MovementChangeType changeType = pendingChange.second.movementChangeType;
|
||||
|
||||
Reference in new issue
Block a user