From d1c812f1162e5fdb13c215792725b2591d7428f5 Mon Sep 17 00:00:00 2001 From: Sheikh Dawood Abdul Ajees Date: Fri, 15 Sep 2017 15:41:57 -0500 Subject: PhysX 3.4.1, APEX 1.4.1 Release @22845541 --- PhysX_3.4/Source/SceneQuery/src/SqPruningStructure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'PhysX_3.4/Source/SceneQuery/src/SqPruningStructure.cpp') diff --git a/PhysX_3.4/Source/SceneQuery/src/SqPruningStructure.cpp b/PhysX_3.4/Source/SceneQuery/src/SqPruningStructure.cpp index 38e5b108..0a2cee50 100644 --- a/PhysX_3.4/Source/SceneQuery/src/SqPruningStructure.cpp +++ b/PhysX_3.4/Source/SceneQuery/src/SqPruningStructure.cpp @@ -222,7 +222,7 @@ bool PruningStructure::build(PxRigidActor*const* actors, PxU32 nbActors) { if(numShapes[i]) { - bounds[i] = reinterpret_cast(PX_ALLOC(sizeof(PxBounds3)*numShapes[i], "Pruner bounds")); + bounds[i] = reinterpret_cast(PX_ALLOC(sizeof(PxBounds3)*(numShapes[i] + 1), "Pruner bounds")); } } -- cgit v1.2.3