2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:47:42 +00:00

Several GameCube cooking fixes

This commit is contained in:
Jack Andersen
2018-04-03 22:31:29 -10:00
parent ecaf7f313f
commit d5e471bac3
8 changed files with 108 additions and 77 deletions

View File

@@ -1031,10 +1031,10 @@ zeus::CAABox CAnimData::GetBoundingBox() const
return x108_aabb;
CAnimTreeEffectiveContribution contrib = x1f8_animRoot->GetContributionOfHighestInfluence();
auto search = std::find_if(aabbList.cbegin(), aabbList.cend(),
[&](const std::pair<std::string, zeus::CAABox>& other) -> bool {
return contrib.x4_name == other.first;
});
auto search =
rstl::binary_find(aabbList.cbegin(), aabbList.cend(), contrib.x4_name,
[](const std::pair<std::string, zeus::CAABox>& other) ->
const std::string& { return other.first; });
if (search == aabbList.cend())
return x108_aabb;