Fix q3plug-related crashes.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6220 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2022-03-08 06:20:33 +00:00
parent 7e67f46482
commit 29f9d620f9
2 changed files with 2 additions and 2 deletions

View File

@ -2499,7 +2499,7 @@ void *SCR_ScreenShot_Capture(int fbwidth, int fbheight, int *stride, enum upload
R2D_FillBlock(0, 0, vid.fbvwidth, vid.fbvheight);
#ifdef VM_CG
if (!okay && q3->cg.Redraw(cl.time))
if (!okay && q3 && q3->cg.Redraw(cl.time))
okay = true;
#endif
#ifdef CSQC_DAT

View File

@ -1189,7 +1189,7 @@ MSV_OpenUserDatabase();
SVHL_ShutdownGame();
#endif
#ifdef Q3SERVER
if (newgametype != GT_QUAKE3)
if (newgametype != GT_QUAKE3 && q3)
q3->sv.ShutdownGame(false);
#endif
#ifdef Q2SERVER