diff --git a/src/SceneGraph/Object.hpp b/src/SceneGraph/Object.hpp index f2a2bf2d9..67ee09f69 100644 --- a/src/SceneGraph/Object.hpp +++ b/src/SceneGraph/Object.hpp @@ -163,6 +163,7 @@ template void Object::setClean() { template auto Object::doTransformationMatrices(const std::vector*>& objects, const MatrixType& initialTransformationMatrix) const -> std::vector { std::vector*> castObjects(objects.size()); for(std::size_t i = 0; i != objects.size(); ++i) + /* Non-null is checked in transformations() */ /** @todo Ensure this doesn't crash, somehow */ castObjects[i] = static_cast*>(objects[i]); @@ -201,6 +202,8 @@ template std::vector Ob /* Mark all original objects as joints and create initial list of joints from them */ for(std::size_t i = 0; i != objects.size(); ++i) { + CORRADE_INTERNAL_ASSERT(objects[i]); + /* Multiple occurences of one object in the array, don't overwrite it with different counter */ if(objects[i]->counter != 0xFFFFu) continue;