X-ray scans of a tiny reptile fossil reveal the pterodactyls’ ancestors scampered around on two legs.