mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 16:51:08 +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
|
void
|
||||||
PR_Profile_f (void)
|
PR_Profile_f (void)
|
||||||
{
|
{
|
||||||
|
if (!sv_pr_state.progs) {
|
||||||
|
Con_Printf ("no progs loaded\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
PR_Profile (&sv_pr_state);
|
PR_Profile (&sv_pr_state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue