Skip to content

Commit

Permalink
Fix ghosting crash
Browse files Browse the repository at this point in the history
  • Loading branch information
lipsanen committed Aug 6, 2022
1 parent b3c20b4 commit fe58b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spt/features/hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void HUDFeature::DrawHUD()
{
vgui::HFont font;

if (!interfaces::surface || !GetFont(FONT_DefaultFixedOutline, font))
if (!screen || !interfaces::surface || !GetFont(FONT_DefaultFixedOutline, font))
return;

ORIG_StartDrawing(interfaces::surface, 0);
Expand Down

2 comments on commit fe58b31

@Reycko
Copy link

@Reycko Reycko commented on fe58b31 Aug 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice now i will be able to use gh + spt next update

@lipsanen
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pretty sure the august release should have this fix

Please sign in to comment.