2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-15 16:45:51 +00:00

CAnimData: Remove usage of const_cast within Touch()

We can just call the function normally without the need for a
const_cast.
This commit is contained in:
Lioncash 2019-10-23 20:44:17 -04:00
parent 18382e5bb6
commit eae1a1d06d

View File

@ -250,7 +250,7 @@ std::shared_ptr<CAnimationManager> CAnimData::GetAnimationManager() { return x10
void CAnimData::SetPhase(float ph) { x1f8_animRoot->VSetPhase(ph); }
void CAnimData::Touch(const CSkinnedModel& model, int shadIdx) const {
const_cast<CBooModel&>(*model.GetModelInst()).Touch(shadIdx);
model.GetModelInst()->Touch(shadIdx);
}
SAdvancementDeltas CAnimData::GetAdvancementDeltas(const CCharAnimTime& a, const CCharAnimTime& b) const {