Fix potential null pointer dereference

git-svn-id: https://svn.eduke32.com/eduke32@6996 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-10-07 05:19:50 +00:00
parent 065bd8df60
commit fbbaeff95a

View file

@ -1972,7 +1972,8 @@ static void sv_restload()
}
#undef CPDAT
g_player[myconnectindex].ps->auto_aim = ud.config.AutoAim;
if (g_player[myconnectindex].ps)
g_player[myconnectindex].ps->auto_aim = ud.config.AutoAim;
}
#ifdef DEBUGGINGAIDS