[Fix] Fixed a nice little seg fault on the MAIN F'ING MENU!!!

This commit is contained in:
Allanis 2014-03-15 02:18:11 +00:00
parent 8e976d5bf9
commit 5b8a9bcbc0

View File

@ -1538,8 +1538,7 @@ void player_startAutonav(void) {
* @brief Aborts autonav
*/
void player_abortAutonav(char* reason) {
/* No point if player is beyond aborting. */
if(pilot_isFlag(player, PILOT_HYPERSPACE))
if((player != NULL) && pilot_isFlag(player, PILOT_HYPERSPACE))
return;
if(player_isFlag(PLAYER_AUTONAV)) {