Yeah, okay. Birds are descended from dinosaurs. I guess it would be more accurate for me to say birds are dinosaurs.
Not pterosaurs though, they were just winged lizards. Even despite the wings, they still walked on all fours.
It's all to do with the bone structure, particularly the shoulders and hips.