Skip to content

Commit

Permalink
Fix null pointer dereference when running g_kill command in disconnec…
Browse files Browse the repository at this point in the history
…ted state.
  • Loading branch information
nitrocaster committed Dec 13, 2015
1 parent f5fa7eb commit 34ad8a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xrGame/console_commands_mp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ class CCC_Kill : public IConsole_Command {
{
if (IsGameTypeSingle())
return;

if (!g_pGameLevel)
return;
if (Game().local_player &&
Game().local_player->testFlag(GAME_PLAYER_FLAG_VERY_VERY_DEAD))
return;
Expand Down

0 comments on commit 34ad8a8

Please sign in to comment.