From b063461a73a9f2db7abc22d128ebaf77a2bd1916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 27 Apr 2013 11:51:10 +0200 Subject: [PATCH] Physics: better diagnostics in ShapeGroup::get(). --- src/Physics/ShapeGroup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }