diff --git a/apps/openmw/mwworld/physicssystem.cpp b/apps/openmw/mwworld/physicssystem.cpp index c4b904ca9..87ec39707 100644 --- a/apps/openmw/mwworld/physicssystem.cpp +++ b/apps/openmw/mwworld/physicssystem.cpp @@ -60,6 +60,12 @@ void animateCollisionShapes (std::mapgetNode(shapeIt->first); + // FIXME: this will happen for nodes with empty names. Ogre's SkeletonInstance::cloneBoneAndChildren + // will assign an auto-generated name if the bone name was empty. We could use the bone handle instead of + // the bone name, but that is a bit tricky to retrieve. + if (bone == NULL) + continue; + btCompoundShape* compound = dynamic_cast(instance.mCompound); btTransform trans;