don't segfault if the profile command is run before progs have been loaded

This commit is contained in:
Bill Currie 2003-05-15 20:46:16 +00:00
parent 9bd839e309
commit 794bca7d8b

View file

@ -124,6 +124,10 @@ ED_Count_f (void)
void
PR_Profile_f (void)
{
if (!sv_pr_state.progs) {
Con_Printf ("no progs loaded\n");
return;
}
PR_Profile (&sv_pr_state);
}