Babar wonders how he can get new clothing. Luckily, a very rich old man who has always been fond of little elephants understands right away that he is longing for a fine suit. As he likes to make people happy, he gives *him* his wallet.

Do "Babar" and "him" have the same meaning?
yes