1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-26 04:12:41 +01:00

Add check reading animation ptr

This commit is contained in:
Filip Gawin 2017-10-19 22:13:55 +02:00
parent 8e86786e5b
commit caa5575573

View File

@ -196,6 +196,7 @@ glm::vec3 CharacterObject::updateMovementAnimation(float dt) {
if (it != movementAnimation->bones.end()) {
AnimationBone* rootBone = it->second;
float step = dt;
RW_CHECK(animator->getAnimation(AnimIndexMovement), "Failed to read animation using index " << AnimIndexMovement);
const float duration =
animator->getAnimation(AnimIndexMovement)->duration;
float animTime =