Employee was operating a locomotive. The equipment came off of the track (D-railed) causing it to hit the ground. They braced to hit the ground by putting a hand on the frame of the windshield. The windshield bounced up and pinched their fingers causing a fractured middle finger.