diff --git a/src/Physics/ShapeGroup.h b/src/Physics/ShapeGroup.h index f41a03b85..51b5f55b2 100644 --- a/src/Physics/ShapeGroup.h +++ b/src/Physics/ShapeGroup.h @@ -288,8 +288,8 @@ template template ShapeGroup template inline const T& ShapeGroup::get(std::size_t i) const { CORRADE_ASSERT(_shapes[i]->type() == Implementation::TypeOf::type(), - "Physics::ShapeGroup::get(): given shape is not of type" << Implementation::TypeOf::type(), - *static_cast(nullptr)); + "Physics::ShapeGroup::get(): given shape is not of type" << Implementation::TypeOf::type() << + "but" << _shapes[i]->type(), *static_cast(nullptr)); return static_cast*>(_shapes[i])->shape; }