Fix error

This commit is contained in:
luiscuenca 2019-01-23 18:04:13 -07:00
parent a947c894c2
commit 7a0f3ea7ef

View file

@ -280,8 +280,8 @@ void OtherAvatar::updateCollisionGroup(bool myAvatarCollide) {
}
void OtherAvatar::createDetailedMotionStates(const std::shared_ptr<OtherAvatar>& avatar) {
assert(detailedMotionStates.empty());
auto& detailedMotionStates = getDetailedMotionStates();
assert(detailedMotionStates.empty());
if (_bodyLOD == BodyLOD::Sphere) {
auto dMotionState = createMotionState(avatar, -1);
if (dMotionState) {