mirror of https://github.com/AxioDL/metaforce.git
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:
parent
18382e5bb6
commit
eae1a1d06d
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue