the owner of the pit must give compensation; he must pay to its owner, but the dead animal will become his.