feat(PlayerWindow): Added check if net_player is nullptr
This commit is contained in:
parent
e4b9b7349a
commit
9a95f5962c
@ -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: ");
|
||||||
|
Reference in New Issue
Block a user