mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Core/Movement: replace multiset::find with std::find in MotionMaster
same reasoning as11de6b5Container's find uses the defined custom comparator (cherry picked from commit6e011c974d)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user