Merge pull request #115 from lioncash/const

CAnimData: Remove usage of const_cast within Touch()
This commit is contained in:
Phillip Stephens 2019-10-24 22:47:14 -07:00 committed by GitHub
commit 5efd827e99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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::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 {