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
1 changed files with 1 additions and 1 deletions

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::SetPhase(float ph) { x1f8_animRoot->VSetPhase(ph); }
void CAnimData::Touch(const CSkinnedModel& model, int shadIdx) const { 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 { SAdvancementDeltas CAnimData::GetAdvancementDeltas(const CCharAnimTime& a, const CCharAnimTime& b) const {