Core/Movement: replace multiset::find with std::find in MotionMaster

same reasoning as 11de6b5
Container's find uses the defined custom comparator

(cherry picked from commit 6e011c974d55135f56df7802699c05fc95ee7873)
This commit is contained in:
ccrs
2021-11-30 22:33:16 +01:00
committed by Shauren
parent 72301bf02f
commit 171947fa62
+2 -1
View File
@@ -361,7 +361,8 @@ void MotionMaster::Remove(MovementGenerator* movement, MovementSlot slot/* = MOT
case MOTION_SLOT_ACTIVE:
if (!_generators.empty())
{
auto itr = _generators.find(movement);
auto bounds = _generators.equal_range(movement);
auto itr = std::find(bounds.first, bounds.second, movement);
if (itr != _generators.end())
Remove(itr, GetCurrentMovementGenerator() == *itr, false);
}