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

CBodyController: Make HasBodyInfo() accept a const reference

This only queries state and doesn't actually modify it.
This commit is contained in:
Lioncash
2020-03-25 01:39:05 -04:00
parent f875bdf024
commit fad980dc19
2 changed files with 3 additions and 3 deletions

View File

@@ -142,8 +142,8 @@ void CBodyController::FaceDirection3D(const zeus::CVector3f& v0, const zeus::CVe
}
}
bool CBodyController::HasBodyInfo(CActor& act) {
return act.GetModelData()->GetAnimationData()->GetCharacterInfo().GetPASDatabase().GetNumAnimStates() != 0;
bool CBodyController::HasBodyInfo(const CActor& actor) {
return actor.GetModelData()->GetAnimationData()->GetCharacterInfo().GetPASDatabase().GetNumAnimStates() != 0;
}
void CBodyController::PlayBestAnimation(const CPASAnimParmData& parms, CRandom16& r) {