[Fix] Segfault if not checking for player when displaying small_menu.
This commit is contained in:
		
							parent
							
								
									584f56e2a0
								
							
						
					
					
						commit
						687ed47839
					
				| @ -150,7 +150,8 @@ static void menu_main_exit(char* str) { | ||||
| /* Ze ingame menu. */ | ||||
| /* Small ingame menu. */ | ||||
| void menu_small(void) { | ||||
|   if(player_isFlag(PLAYER_DESTROYED) || pilot_isFlag(player, PILOT_DEAD) || | ||||
|   if((player == NULL) player_isFlag(PLAYER_DESTROYED) | ||||
|       || pilot_isFlag(player, PILOT_DEAD) || | ||||
|       (menu_isOpen(MENU_MAIN) || | ||||
|        menu_isOpen(MENU_SMALL) || | ||||
|        menu_isOpen(MENU_DEATH))) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Allanis
						Allanis