From caa557557357143f8489cc6668c3cd0ca8e7ec52 Mon Sep 17 00:00:00 2001 From: Filip Gawin Date: Thu, 19 Oct 2017 22:13:55 +0200 Subject: [PATCH] Add check reading animation ptr --- rwengine/src/objects/CharacterObject.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rwengine/src/objects/CharacterObject.cpp b/rwengine/src/objects/CharacterObject.cpp index 0591c6c0..b898d3b6 100644 --- a/rwengine/src/objects/CharacterObject.cpp +++ b/rwengine/src/objects/CharacterObject.cpp @@ -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 =