2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-12-23 17:25:24 +01:00

ref: gl: fixed crash when opening "Customize" menu

This commit is contained in:
SNMetamorph 2022-11-21 22:56:23 +04:00 committed by Alibek Omarov
parent 3488d4e65f
commit 3bd8ad50d2

View File

@ -3315,8 +3315,10 @@ void R_DrawWorld( void )
// paranoia issues: when gl_renderer is "0" we need have something valid for currententity
// to prevent crashing until HeadShield drawing.
RI.currententity = gEngfuncs.GetEntityByIndex( 0 );
RI.currentmodel = RI.currententity->model;
if( !RI.currententity )
return;
RI.currentmodel = RI.currententity->model;
if( !RI.drawWorld || RI.onlyClientDraw )
return;