Fixed uninitialized shader variable in CG_DrawCrosshair()

This commit is contained in:
smallmodel 2023-11-13 22:18:38 +01:00
parent defa297a56
commit 5568d160ab
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -1180,6 +1180,8 @@ void CG_DrawCrosshair()
float x, y;
float width, height;
shader = NULL;
if (!cg_hud->integer || !ui_crosshair->integer) {
return;
}