mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-23 10:50:58 +00:00
don't segfault if the profile command is run before progs have been loaded
This commit is contained in:
parent
9bd839e309
commit
794bca7d8b
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue