valgrind says _ghostObject is used before it's initialized

This commit is contained in:
Seth Alves 2015-03-28 17:12:55 -07:00
parent 96bfc53391
commit 1e166eef0f

View file

@ -235,7 +235,9 @@ CharacterController::CharacterController(AvatarData* avatarData) {
_jumpToHoverStart = 0;
setMaxSlope(btRadians(45.0f));
_lastStepUp = 0.0f;
_pendingFlags = 0;
_pendingFlags = PENDING_FLAG_UPDATE_SHAPE;
updateShapeIfNecessary();
}
CharacterController::~CharacterController() {