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 6e011c974d)
This commit is contained in:
ccrs
2019-04-17 00:06:06 +02:00
committed by Shauren
parent 72301bf02f
commit 171947fa62

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);
}