1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-27 20:09:43 +00:00

be explicit about narrowing to resolve: error: type 'btScalar *' (aka 'float *') cannot be narrowed to 'bool' in initializer list [-Wc++11-narrowing]

This commit is contained in:
Bret Curtis 2020-12-09 23:15:37 +01:00
parent 686692519c
commit 442292715e

View file

@ -15,7 +15,7 @@ namespace
struct DetourNavigatorRecastMeshObjectTest : Test
{
btBoxShape mBoxShape {btVector3(1, 2, 3)};
btCompoundShape mCompoundShape {btVector3(1, 2, 3)};
btCompoundShape mCompoundShape {static_cast<bool>(btVector3(1, 2, 3))};
btTransform mTransform {btQuaternion(btVector3(1, 2, 3), 1), btVector3(1, 2, 3)};
DetourNavigatorRecastMeshObjectTest()