diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-07-06 23:00:32 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-07-07 00:35:45 +0200 |
commit | 0eb8a5d53ecb596fe1e0640ab6d42fa5fe0200b2 (patch) | |
tree | 57d7595b137347f5c4e0679d012696d54f045f1a /src/animation | |
parent | Merge pull request #113 from erorcun/erorcun (diff) | |
download | re3-0eb8a5d53ecb596fe1e0640ab6d42fa5fe0200b2.tar re3-0eb8a5d53ecb596fe1e0640ab6d42fa5fe0200b2.tar.gz re3-0eb8a5d53ecb596fe1e0640ab6d42fa5fe0200b2.tar.bz2 re3-0eb8a5d53ecb596fe1e0640ab6d42fa5fe0200b2.tar.lz re3-0eb8a5d53ecb596fe1e0640ab6d42fa5fe0200b2.tar.xz re3-0eb8a5d53ecb596fe1e0640ab6d42fa5fe0200b2.tar.zst re3-0eb8a5d53ecb596fe1e0640ab6d42fa5fe0200b2.zip |
Diffstat (limited to 'src/animation')
-rw-r--r-- | src/animation/AnimBlendAssociation.h | 2 | ||||
-rw-r--r-- | src/animation/AnimManager.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/animation/AnimBlendAssociation.h b/src/animation/AnimBlendAssociation.h index d846a4d3..a7e127f7 100644 --- a/src/animation/AnimBlendAssociation.h +++ b/src/animation/AnimBlendAssociation.h @@ -77,7 +77,7 @@ public: void UpdateTime(float timeDelta, float relSpeed); bool UpdateBlend(float timeDelta); - float GetTimeLeft() { return hierarchy->totalLength - currentTime; } + inline float GetTimeLeft() { return hierarchy->totalLength - currentTime; } static CAnimBlendAssociation *FromLink(CAnimBlendLink *l) { return (CAnimBlendAssociation*)((uint8*)l - offsetof(CAnimBlendAssociation, link)); diff --git a/src/animation/AnimManager.cpp b/src/animation/AnimManager.cpp index 73fc4d94..6ad63e49 100644 --- a/src/animation/AnimManager.cpp +++ b/src/animation/AnimManager.cpp @@ -752,7 +752,7 @@ CAnimManager::LoadAnimFiles(void) AnimAssocDefinition *def = &CAnimManager::ms_aAnimAssocDefinitions[i]; group->CreateAssociations(def->blockName, clump, def->animNames, def->numAnims); for(j = 0; j < group->numAssociations; j++) - group->GetAnimation(def->animDescs[j].animId)->flags |= def->animDescs[j].flags; + group->GetAnimation(j)->flags |= def->animDescs[j].flags; RpClumpDestroy(clump); } } |