From 5ea7446eeb9ce8dc163c9954464311f8fa9b61dd Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 5 Mar 2016 19:41:45 +0100 Subject: [PATCH] Change a dynamic_cast to static_cast --- apps/openmw/mwphysics/physicssystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwphysics/physicssystem.cpp b/apps/openmw/mwphysics/physicssystem.cpp index d2d95d937..db1bf52de 100644 --- a/apps/openmw/mwphysics/physicssystem.cpp +++ b/apps/openmw/mwphysics/physicssystem.cpp @@ -585,7 +585,7 @@ namespace MWPhysics assert (mShapeInstance->getCollisionShape()->isCompound()); - btCompoundShape* compound = dynamic_cast(mShapeInstance->getCollisionShape()); + btCompoundShape* compound = static_cast(mShapeInstance->getCollisionShape()); for (std::map::iterator it = mShapeInstance->mAnimatedShapes.begin(); it != mShapeInstance->mAnimatedShapes.end();) {