fix msvc compilation/crash when shooting a box

This commit is contained in:
erwin.coumans
2009-01-08 23:48:13 +00:00
parent a8ec916af0
commit bdfd9784ed
3 changed files with 3 additions and 2 deletions

View File

@@ -985,6 +985,7 @@ void HfFluidDemo::setShootBoxShape ()
{
if (!m_shootBoxShape)
{
m_shootBoxShape = new btBoxShape(btVector3(0.3f,1.f,0.2f));
btHfFluidBuoyantConvexShape* buoyantShape = new btHfFluidBuoyantConvexShape((btConvexShape*)m_shootBoxShape);
buoyantShape->generateShape (btScalar(0.25f), btScalar(0.05f));
m_shootBoxShape = buoyantShape;