mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-04 00:23:27 +08:00
fix(MultiKick): Crash when calling CNetGamePlayer::is_host (#2106)
This commit is contained in:
parent
d1821dc2b8
commit
1a1c1b8e0a
@ -25,7 +25,7 @@ namespace big
|
||||
if (g_player_service->get_self()->is_host())
|
||||
dynamic_cast<player_command*>(command::get(RAGE_JOAAT("hostkick")))->call(player, {});
|
||||
|
||||
if (player && !player->is_host() && !g_player_service->get_self()->is_host())
|
||||
if (player && !g_player_service->get_self()->is_host() && player->is_valid() && !player->is_host())
|
||||
dynamic_cast<player_command*>(command::get(RAGE_JOAAT("desync")))->call(player, {});
|
||||
|
||||
if (g_player_service->get_self()->is_host())
|
||||
|
Loading…
x
Reference in New Issue
Block a user