feat(PlayerWindow): Added check if net_player is nullptr

This commit is contained in:
Yimura 2021-07-26 21:22:01 +02:00
parent e4b9b7349a
commit 9a95f5962c

View File

@ -6,7 +6,12 @@ namespace big
{ {
void window::player() void window::player()
{ {
if (!g.selected_player.is_online) return; if (!g.selected_player.is_online || g.selected_player.net_player == nullptr)
{
g.window.player = false;
return;
}
char title[64]; char title[64];
strcpy(title, "Player Options: "); strcpy(title, "Player Options: ");