Good thinking!

You go back to the mud pit where you had crash landed and find that your X-Wing was still there. Apparently the pit wasn't as deep as you first thought and a good portion of your ship still stuck out. Going back into the cockpit, you were able to get your first aid kit and several rations of food. The comlink was still dead and there was no chance this ship was going to function again, but nevertheless, it served well as your new home. You decide to spend the night inside the cramped confines of the cockpit, thinking that it was way safer than sleeping out there.

Immediately, you give in to your exhaustion and fall sound asleep.

1