Fix exception for box shapes (Fixes #1580)

deque
scrawl 11 years ago
parent 911bd0e340
commit 1ab02d8072

@ -108,6 +108,7 @@ void ManualBulletShapeLoader::loadResource(Ogre::Resource *resource)
for(int i=0; i <n;i++) for(int i=0; i <n;i++)
delete (mCompoundShape->getChildShape(i)); delete (mCompoundShape->getChildShape(i));
delete mCompoundShape; delete mCompoundShape;
mShape->mAnimatedShapes.clear();
} }
} }
else else

Loading…
Cancel
Save