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

Various implementatations

This commit is contained in:
2016-04-29 03:08:46 -07:00
parent 10dcbaa6c9
commit 00a98bce85
37 changed files with 341 additions and 138 deletions

View File

@@ -40,10 +40,10 @@ public:
bool HasState(s32 id) const
{
for (const CPASAnimState& state : x0_states)
return true;
return false;
const auto& st = std::find_if(x0_states.begin(), x0_states.end(),
[&id](const CPASAnimState& other)->bool
{ return other.GetStateId() == id; });
return st != x0_states.end();
}
};