Get bodies of a Joint

Hi everyone !

I'm working on an app using box2D in C++ but I don't understand how to get the bodies which are connected with a DistanceJoint.
I tried GetBody1() and GetBody2() as written in the manual but the compilator tells me it doesn't exist.

Code:
'class b2Joint' has no member named 'GetBody1'
It says.

What's wrong with it ?

Thanks 😀

[EDIT] I looked in b2Joint.h and in fact it's GetBodyA() and B so I think you should change what's written in the manual to avoid errors such as mine 😉
There is a forum topic for this:

viewtopic.php?f=4&t=4767

(Your issue hasn't been noted yet, maybe you could post there?)

Original thread: https://box2d.org/forum/viewtopic.php?t=4777